Community
hello,
I want to override dimension value in drawing thru ilogic, with respect to drawing parameter
like... parameter size : 123 then dimension value should be 300
else 234 then 600........any idea how to do that.
regards,
Dhaval
Solved! Go to Solution.
Solved by d_eckel. Go to Solution.
Hi Dhaval,
I just tried a little bit and got this code working.
Dim oDoc As DrawingDocument = ThisDrawing.Document MessageBox.Show(oDoc.Sheets.Item(1).DrawingDimensions.Item(1).ModelValue, "Title") 'oDoc.Sheets.Item(1).DrawingDimensions.Item(1).ModelValue '<- This is the real value oDoc.Sheets.Item(1).DrawingDimensions.Item(1).ModelValueOverridden = True '<- set override oDoc.Sheets.Item(1).DrawingDimensions.Item(1).OverrideModelValue = 15 '<- set value
The rest should be just some for each statements (e. g. sheets) and check if the value is equal to 123 or something else.
Can't find what you're looking for? Ask the community or share your knowledge.