find rev number from 3d part insted of 2d?

find rev number from 3d part insted of 2d?

Darkforce_the_ilogic_guy
Advisor Advisor
471 Views
3 Replies
Message 1 of 4

find rev number from 3d part insted of 2d?

Darkforce_the_ilogic_guy
Advisor
Advisor
oRevNum = iProperties.Value("Project", "Revision Number")

 

 I uses the code about to find the Rev. Number of an drawing... I want it to find the form the 3d model(ipt, iam) that are use on the drawing . but the code is run on the 2d (idw).

 

How do i get that ?

0 Likes
Accepted solutions (1)
472 Views
3 Replies
Replies (3)
Message 2 of 4

FINET_Laurent
Advisor
Advisor

Hi, The same way I suppose.. :

 

laurentfinetAF8M9_0-1624601541620.png

"Project" , "Revision number"

Regards,


FINET L.

If this post solved your question, please kindly mark it as "Solution"

If this post helped out in any way to solve your question, please drop a "Like"

@LinkedIn     @JohnCockerill

0 Likes
Message 3 of 4

Ralf_Krieg
Advisor
Advisor
Accepted solution

Hello

 

Am I right you want the revision number of the 3d model referenced in your drawing? The code below get's it for the first referenced document.

Dim oDrawDoc As DrawingDocument = ThisDoc.Document
Dim oRefedDoc As Document = oDrawDoc.ReferencedDocuments.Item(1)
Dim oProp As Inventor.Property = oRefedDoc.PropertySets("{F29F85E0-4FF9-1068-AB91-08002B27B3D9}").Item("Revision Number")

MsgBox (oProp.Value)

 


R. Krieg
RKW Solutions
www.rkw-solutions.com
Message 4 of 4

Darkforce_the_ilogic_guy
Advisor
Advisor

That is what I needed ... Thanks

0 Likes