#1
|
|||
|
|||
Insertion parts
Can i create a visualization in soft line, during the insertion of a part by macro command, for example a screw or a bolt.
Thanks for replies. |
#2
|
||||
|
||||
huhhhhhhh I feel stupid.
What's a "soft line"? Is it a rubber line / a feedback line? If yes, where should it start then? (I'm more active in the Annotation / OSDM forum) |
#3
|
|||
|
|||
I have attached an example file by a library of bolts.
|
#4
|
|||
|
|||
Is not there nobody that knows it or is it a secret?
|
#5
|
||||
|
||||
It would help if you could explain your problem a little better. Like Wolfgang, I am not sure what you mean by "soft line".
Claus (who doesn't know too much about OSDD/ME10 either) |
#6
|
|||
|
|||
In the example there is a bolt, during the insertion there is a silhouette in blanck soft line to explain the bolt to draw.
How it's possible? Sorry for my english. Thanks |
#7
|
||||
|
||||
If you load a MI file from a macro with a command similar to the folowing
LOAD SUBPART filename.mi you will get a bounding box which indicates the outer limits of the part you are loading. Typically it will be the last functional line of the macro, because most commands will stop the load operation. I don't know of a way to see the actual part image during placement, but at least you get a bounding box. The loaded part will be placed by the Reference Point of the TOP level part in the MI file. So for your bolt example, you would probably want to set the reference point to the intersection of the center line and the bottom of the bolt head. Then the user can click the point on the edge of the part where they want to place the bolt. This will allow precise placement of the bolt even if you cannot see the bolt image before placement. See the Help on the LOAD command for more details.
__________________
John Scheffel |
#8
|
|||
|
|||
Re: Insertion parts
I have create a macro to drawing bolt ring.
Can i draw a pre-view drawing during the insertion of this ring. See the example in other reply in this section. |
#9
|
|||
|
|||
Re: Insertion parts
EVIDENTLY NOT has EXPLAINED WELL.
I ATTACH A MACRO Of EXAMPLE. |
#10
|
||||
|
||||
Re: Insertion parts
I tried your macro and it seems to work. In my original response I assumed you wanted to load a part from a file and visualize it's shape during placement, but it seems that you want to create it on the fly with a macro that prompts the user for parameters.
It is still not clear to me what else you want the macro to do. Since the first two point picks determine the location, there should be no reason to preview the part for placement once all parameters are input. Do you want to provide feedback as the user inputs the parameters? Do you want to display an outline after all the user input and provide an opportunity to accept or reject?
__________________
John Scheffel |
#11
|
||||
|
||||
Re: Insertion parts
Hello brm,
There is no way to get an outline of a part to appear on the screen and attached to the mouse cursor before you try to place it in the viewport. There is a pre_view command in Drafting for use with loading files from a file folder, and of course there is the preview thumbnails used with Design Management and Model Manager. HTH Cheers Thom |
#12
|
|||
|
|||
Re: Insertion parts
It's no problem adding an "outline" image during macro operation. (Specifying the outline's colors and linetypes is tricky though!)
Anyone needing help on this topic should get in touch. /Darren |
#13
|
||||
|
||||
Re: Insertion parts
Hello Darren,
Why not just post an example of this on here so anyone can see what you are doing, because I'm curious on how you are doing this. Cheers THom |
#14
|
|||
|
|||
Re: Insertion parts
OK. I'll write a short macro that illustrates how it works. Check it out tomorrow (it's getting late now).
/Darren Like Tom and Jerry - I like to play cat and mouse before breakfast |
#15
|
|||
|
|||
Re: Insertion parts
This macro demonstrates the "impossible". The code is secured.
To load: LOAD_MACRO 'outline.m' To run: OUTLINE Width_mm Height_mm (Optional_angle) (CANCEL) Place_point The macro draws a square (WxH) with diagonals. An optional angle can be entered before placement to rotate the square. To cancel during operation use CANCEL or END. The techniques used can be adapted to provide the user with the ability to try out various parameters before committing to a final position. /Darren Accurate Consulting www.nethut.net/me10 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|