CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-14-2012, 11:41 PM
device0712 device0712 is offline
Registered User
 
Join Date: Nov 2009
Posts: 43
Parts 3D count

Hi to all.
Someone know how to count 3D parts with same name?
If you see attach picture there are 4 parts with name 'back-plate-cap-screw', the cad rename this with extension .1 .2 .3 and the folder indicate (4).....
How can I count or retrive this number (4) in lisp???

Thanks to all....
Device
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.jpg
Views:	471
Size:	40.4 KB
ID:	1845  
Reply With Quote
  #2  
Old 06-04-2013, 01:49 PM
MichaelA MichaelA is offline
Registered User
 
Join Date: Feb 2006
Location: Vancouver, WA USA
Posts: 40
Re: Parts 3D count

there is a macro on the osd.de site that claims to do that but it is german so you can try it and see what you get.

http://osd.cad.de/lisp_3d_17.htm
Reply With Quote
  #3  
Old 07-10-2013, 04:22 AM
Scott Scott is offline
Registered User
 
Join Date: May 2003
Location: sebastian, FL
Posts: 2
Re: Parts 3D count

Do not know if you are still working on this. I have written code which does something related to this. Basically, I start at the top part, create a list of all of the child objects, check to see if any of these are parts - at which point you could check for similar names, or if the object contains children, you could parse the children and check for similar names. Let me know if you are looking for more specific "SD" commands.
Thanks.
Scott
Reply With Quote
  #4  
Old 07-11-2013, 08:27 AM
Andy Poulsen Andy Poulsen is offline
Administrator
 
Join Date: Apr 2003
Location: Fort Collins, Colorado
Posts: 273
Re: Parts 3D count

Are you looking for shared parts, or any parts that have the same name? There are different approaches depending on what you really want.

Let us know and we can provide more details.
__________________
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
  #5  
Old 08-28-2013, 12:32 AM
yankeebass yankeebass is offline
Registered User
 
Join Date: Jul 2008
Posts: 3
Re: Parts 3D count

Quote:
Originally Posted by Andy Poulsen View Post
Are you looking for shared parts, or any parts that have the same name? There are different approaches depending on what you really want. Let us know and we can provide more details.
I'm looking to count shared parts, like to see if the part is an inseparable part the command 'sd-inq-inseparable-p' is used i need the command for 'shared parts'

greetings,

Henk

Last edited by yankeebass; 08-28-2013 at 12:38 AM.
Reply With Quote
  #6  
Old 08-28-2013, 08:27 AM
Andy Poulsen Andy Poulsen is offline
Administrator
 
Join Date: Apr 2003
Location: Fort Collins, Colorado
Posts: 273
Re: Parts 3D count

Quote:
Originally Posted by yankeebass View Post
I'm looking to count shared parts, like to see if the part is an inseparable part the command 'sd-inq-inseparable-p' is used i need the command for 'shared parts'
Will the command "sd-inq-obj-shared-objects" do what you need?
__________________
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
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 05:38 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.