Reply

retrieve doc number

how do iget the document number from an active draft file.

 

using "Property DocumentNumber As String" from the sdk help file but, just wants to add an END SUB before it!! do i need to add reference to the properties (I have but its still dont work)

 

Posted by: Steve Gardner
Post date: 8/8/2013 10:29:44 AM

2 REPLIES

retrieve doc number

Hi Steve,

 

Post the code you have so far and someone can help you.

 

Cheers,

 

Alex

 

Posted by: Alex Lush
Post date: 8/8/2013 10:34:24 AM

retrieve doc number

If you're trying to get the drawing number from the properties, those are stored in the part file. So this is what you'll have to do:

 

1) Sift thru all model links in the active dft. (b/c you can have more than one part linked to a draft)

2)Then use ModelLink.ModelDocument.Properties This will be were all the property items are. In my case, I have my drawing numbers in the 'Custom' properties. There are many properties items here, so you'll have to 'For Each' thru them to find the property item you want.

 

I'm not a very good programmer, and not all my methods arent the proper way of doing things, but atleast this will get you want.

 

P.S. - if you havent already, get SolidEdge Spy. It does wonders on finding were information is held withing the SE structure.

 

Posted by: David Van Doren
Post date: 8/9/2013 9:13:00 AM