CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > CoCreate Drafting

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-15-2004, 12:15 AM
brm brm is offline
Registered User
 
Join Date: Dec 2002
Posts: 66
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.
Reply With Quote
  #2  
Old 11-15-2004, 09:35 AM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 754
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)
Reply With Quote
  #3  
Old 11-15-2004, 11:13 PM
brm brm is offline
Registered User
 
Join Date: Dec 2002
Posts: 66
I have attached an example file by a library of bolts.
Attached Thumbnails
Click image for larger version

Name:	example.png
Views:	667
Size:	9.0 KB
ID:	386  
Reply With Quote
  #4  
Old 12-10-2004, 05:36 AM
brm brm is offline
Registered User
 
Join Date: Dec 2002
Posts: 66
Is not there nobody that knows it or is it a secret?
Reply With Quote
  #5  
Old 12-10-2004, 05:40 AM
clausb's Avatar
clausb clausb is offline
Registered User
 
Join Date: Nov 2002
Posts: 1,168
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)
Reply With Quote
  #6  
Old 12-10-2004, 05:56 AM
brm brm is offline
Registered User
 
Join Date: Dec 2002
Posts: 66
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
Reply With Quote
  #7  
Old 12-10-2004, 08:41 AM
John Scheffel's Avatar
John Scheffel John Scheffel is offline
Administrator
 
Join Date: Sep 2002
Location: San Jose, CA
Posts: 1,288
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
Reply With Quote
  #8  
Old 12-13-2004, 11:35 PM
brm brm is offline
Registered User
 
Join Date: Dec 2002
Posts: 66
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.
Reply With Quote
  #9  
Old 12-20-2004, 06:17 AM
brm brm is offline
Registered User
 
Join Date: Dec 2002
Posts: 66
Re: Insertion parts

EVIDENTLY NOT has EXPLAINED WELL.
I ATTACH A MACRO Of EXAMPLE.
Attached Files
File Type: zip crea_rosetta.zip (878 Bytes, 586 views)
Reply With Quote
  #10  
Old 12-20-2004, 08:15 AM
John Scheffel's Avatar
John Scheffel John Scheffel is offline
Administrator
 
Join Date: Sep 2002
Location: San Jose, CA
Posts: 1,288
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
Reply With Quote
  #11  
Old 12-20-2004, 08:48 AM
Thom Ivancso's Avatar
Thom Ivancso Thom Ivancso is offline
Registered User
 
Join Date: Oct 2002
Location: Connecticut, USA
Posts: 212
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
Reply With Quote
  #12  
Old 12-20-2004, 12:10 PM
Darren Darren is offline
Registered User
 
Join Date: Oct 2002
Location: Norway
Posts: 19
Thumbs up 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
Reply With Quote
  #13  
Old 12-20-2004, 12:31 PM
Thom Ivancso's Avatar
Thom Ivancso Thom Ivancso is offline
Registered User
 
Join Date: Oct 2002
Location: Connecticut, USA
Posts: 212
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
Reply With Quote
  #14  
Old 12-20-2004, 12:50 PM
Darren Darren is offline
Registered User
 
Join Date: Oct 2002
Location: Norway
Posts: 19
Cool 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
Reply With Quote
  #15  
Old 12-21-2004, 04:10 AM
Darren Darren is offline
Registered User
 
Join Date: Oct 2002
Location: Norway
Posts: 19
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
Attached Files
File Type: m outline.m (1.0 KB, 549 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:12 PM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.