iLogic rule to insert part parameters into dimension text in assembly drawing

iLogic rule to insert part parameters into dimension text in assembly drawing

Anonymous
Not applicable
639 Views
0 Replies
Message 1 of 1

iLogic rule to insert part parameters into dimension text in assembly drawing

Anonymous
Not applicable

I am trying to speed-up dimensioning of an assembly drawing (DWG) in Inventor using iLogic. The assembly contains parts which have parameters which I would like inserted into dimension text. I can achieve this manually using the Edit Dimension / Format Text dialogue boxes to select the part parameters and insert them into the assembly dimension text.

My iLogic rule can currently identify the part containing the parameters but when I attempt to write these to the dimension text, I receive an error message.


The part parameters are called “No_Risers” and “riser”. “partFileName” is the FullFileName of the Part Document containing these parameters.

 

 

 

Code Snippet

 

If oPart.ComponentDefinition.Material.Name = "Concrete" Then

partFileName = oPart.FullFileName

 

End If

 

oDimensionText.FormattedText = "<Parameter Resolved = 'True'

ComponentIdentifier='" & partFileName & "' Name = 'No_Risers'

Precision = '0'></Parameter>" & " No. RISERS @ " & "<Parameter Name

= 'riser' Precision = '2'></Parameter>" & " = " &

"<DimensionValue/>"

 

End of Code



The line which gives me the error message is the oDimensionText line :

 

(I have split the long line of code so it reads better on the forum. It is one line in the iLogic rule)

I have tried many variations of the above, but cannot get it to work. I can successfully write the parameter values to the dimension text, but these do not update if the parameters update.

I’m using Inventor 2013 Pro

Any help would be gratefully received.

0 Likes
640 Views
0 Replies
Replies (0)