CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > CoCreate Drafting

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 08-04-2009, 08:32 PM
wathavy's Avatar
wathavy wathavy is offline
Registered User
 
Join Date: Jul 2007
Location: Japan Nagano
Posts: 537
All construction line on active part to be deleted command?

Hi.
I am wondering if there is any button or icon with which I can delete all construction lines of a part.
I once had it, if I remember correctly.
Now, I cannot find one.

Do you know any of that sort?

Thank you.
__________________
Toshi
Reply With Quote
  #2  
Old 08-05-2009, 03:08 AM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 754
Re: All construction line on active part to be deleted command?

create an icon by your own and fill it with the magic sequence:
Code:
DELETE C_LINES ALL C_CIRCLES ALL END
which will delete all construction lines and circles in the current part.

!!! not tested !!!
Try to enter the sequence word by word into the drafting's command line and watch the prompt and the view port. That's the normal way to figure out what have be done.
Reply With Quote
  #3  
Old 08-05-2009, 04:02 AM
wathavy's Avatar
wathavy wathavy is offline
Registered User
 
Join Date: Jul 2007
Location: Japan Nagano
Posts: 537
Re: All construction line on active part to be deleted command?

Thank you.

It beeped. (Shrug).
But the first half did good work for me.
Quote:
DELETE C_LINES ALL END
Cheers!
__________________
Toshi
Reply With Quote
  #4  
Old 08-05-2009, 04:13 AM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 754
Re: All construction line on active part to be deleted command?

Quote:
Originally Posted by wathavy View Post
It beeped. (Shrug).
based on the fact that you don't have any c_circles.. yes.. then drafting is just 'noisy' where OSDM would have said 'nothing selected' which you have to confirm with a click.

If you sometimes also have c_circles.. then you have to adapt the command ( tip: TRAP_ERROR , to be found in the command ref of Drafting.
Reply With Quote
  #5  
Old 08-05-2009, 06:10 AM
Andy Poulsen Andy Poulsen is offline
Administrator
 
Join Date: Apr 2003
Location: Fort Collins, Colorado
Posts: 273
Re: All construction line on active part to be deleted command?

Or, if you want to delete all construction geometry, you can use
Code:
delete c_geo all end
I hope this helps!

andy
__________________
Andy Poulsen
AI MAXTools: Dream. Design. Done. It's that easy!
Add-ins bringing new functionality and speed to Creo Elements/Direct and CoCreate products. Now available for v17-v20+!
See them in action at www.ai-maxtools.com and then try them for yourself -- FREE!
Reply With Quote
  #6  
Old 08-05-2009, 08:41 AM
BMaverick's Avatar
BMaverick BMaverick is offline
Registered User
 
Join Date: Mar 2009
Location: Tennessee, U.S.A.
Posts: 267
Re: All construction line on active part to be deleted command?

Is there some sort of defacto all command list and usage for CoCreate out there?

A list like that would be greatly helpful.
__________________
Support Your Local Sheriff - At high noon

Jason: "How much does it pay?"
Citizen: "Well, none of our other sheriffs ever lived long enough to find out."

Co-Create 2007 (15.50G)
ANSYS Workbench 14
SolidWorks 2011
UGNX-7.5 / TeamCenter UA 8
PADS 2000
Applicon Bravo
Autotrol
CADAM
Pro/E
Reply With Quote
  #7  
Old 08-05-2009, 09:01 AM
John Scheffel's Avatar
John Scheffel John Scheffel is offline
Administrator
 
Join Date: Sep 2002
Location: San Jose, CA
Posts: 1,288
Re: All construction line on active part to be deleted command?

Quote:
Originally Posted by Andy Poulsen View Post
Or, if you want to delete all construction geometry, you can use
Code:
delete c_geo all end
I hope this helps!
Or maybe even better....
Code:
DELETE GLOBAL C_GEO ALL END
The GLOBAL will delete construction geometry in all parts instead of just the current part. A button to do this would be a nice enhancement. It has been part of the HP Macro set since before I joined HP in 1993. One of the many handy HP macros that was never added to standard ME10/Drafting even though they were submitted to the developers.
__________________
John Scheffel
Reply With Quote
  #8  
Old 08-05-2009, 09:08 AM
John Scheffel's Avatar
John Scheffel John Scheffel is offline
Administrator
 
Join Date: Sep 2002
Location: San Jose, CA
Posts: 1,288
Re: All construction line on active part to be deleted command?

Quote:
Originally Posted by BMaverick View Post
Is there some sort of defacto all command list and usage for CoCreate out there?
The Programming Reference lists all the standard Drafting commands. You can open from inside Drafting by clicking Help>Program Ref Guide. This contains all the building blocks to create commands similar to those posted above but not any handy command strings.
__________________
John Scheffel
Reply With Quote
  #9  
Old 08-05-2009, 09:24 AM
Andy Poulsen Andy Poulsen is offline
Administrator
 
Join Date: Apr 2003
Location: Fort Collins, Colorado
Posts: 273
Re: All construction line on active part to be deleted command?

Like John, I find the Drafting help file to be quite useful for things like this. When you click the help menu or you can type "help '' " (that's the word help followed by two single quotes right next to each other), Drafting will open the help file in a web browser window.

Then you can just select the command you want to find more about (you can use the letters at the top of the screen to quickly jump to various sections of the index). Then you can try the various things listed in the help file directly in the command-line of Drafting to see how they work.

Some folks have said they didn't like using the help files because they were hard to understand. However, they're really not that bad...

For example, if you look at "Delete" command, you see something like this: (it might vary slightly depending on the version of Drafting)
Code:
                ,<-----(M_UNDO)-------,
                |                     |
                |<--------------------|
                v                     |
-->(DELETE)--+--+------|select|-------+--+-->
             |                           ^
             '--->(ALL)-->(CONFIRM)------'
This shows that we can use the "select" command to filter what will be deleted. Then if we look at the "select" command in the help file we see:
Code:
-->+------------>+-->+------------------------+->+--->|pt on vertex|------->+--->
    |             ^   |                        ^  |                          ^
   +->(GLOBAL)-->+   |-->(POINTS)------------>|  |->(ELEM)-+                |
   |             ^   |-->(LINES)------------->|  |         v                |
   `->(SUBTREE)->'   |-->(ARCS)-------------->|  |-------->+->|pt on elem|->|
                     |-->(FILLETS)----------->|  |                          |
                     |-->(CIRCLES)----------->|  |-->|pts of box|---------->|
                     |-->(TEXTS)------------->|  |                          |
                     |-->(SPLINES)----------->|  |-->(ALL)----------------->|
                     |-->(BSPLINES)---------->|  |                          |
                     |-->(C_LINES)----------->|  |-->(VERTEX)->|pt|-------->|
                     |-->(C_CIRCLES)--------->|  |                          |
                     |-->(PARTS)------------->|  |-->(BOX)->|pts of box|--->|
                     |-->(LEADER_LINES)------>|  |                          |
                     |-->(HATCHING)---------->|  |-->(INFOS)--|string|----->|
                     |-->(DIMENSIONS)-------->|  |                          |
                     |-->(GEO)--------------->|  |-->|part name|----------->|
                     |-->(C_GEO)------------->|  |                          |
                     |-->(POLYELEMENTS)------>|  |-->|pixmap name|--------->|
                     |-->(CENTERLINES)------->|  |                          |
                     |-->(SYMLINES)---------->|  |-->|OLE name|------------>|
                     |-->(REFLINES)---------->|  |                          |
                     |-->(EDITED_DIMENSIONS)->|  |-->(FONT)--|fontname|---->|
                     |-->(PRPS)-------------->|  |                          |
                     |-->(PIXMAPS)----------->|  |-->(PRE_SELECTED)-------->|
                     `-->(OLES)-------------->'  |                          |
                                                 |-->{1}------------------->|
                                                 |                          |
                                                  `-->{2}------------------->'
where we see the various filters we can use, one of which is "c_geo" (which is useful in this current case).

I hope this example helps to show that the help file is your friend! Admittedly, it can seem a bit intimidating, but it's really not that bad, and can be quite useful...

So, as John said, the building blocks are all there, and you can use them to build your own custom commands (such as the two we've seen here to delete construction elements both in just the current part and globally).

I hope this helps!

andy
__________________
Andy Poulsen
AI MAXTools: Dream. Design. Done. It's that easy!
Add-ins bringing new functionality and speed to Creo Elements/Direct and CoCreate products. Now available for v17-v20+!
See them in action at www.ai-maxtools.com and then try them for yourself -- FREE!
Reply With Quote
  #10  
Old 08-05-2009, 03:51 PM
wathavy's Avatar
wathavy wathavy is offline
Registered User
 
Join Date: Jul 2007
Location: Japan Nagano
Posts: 537
Smile Re: All construction line on active part to be deleted command?


Thank you Andy!
Oh, also, John. I made two of them so I can show up myself.

I am not sure if I can play with the macro.
I cannot even create any lisp command for Modeling either.
So....
I stick to forum's nice people's helps.

Thanks a ton.
__________________
Toshi
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 02:28 AM.



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.