Announcements

Announcement: We’re aware of an issue affecting starting a new topic from category pages and creating new blog posts. New topics can still be started directly from the relevant board. Learn more here.

override dimension value in drawing thru ilogic

override dimension value in drawing thru ilogic

dhaval3112
Advocate Advocate
667 Views
2 Replies
Message 1 of 3

override dimension value in drawing thru ilogic

dhaval3112
Advocate
Advocate

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.

dhaval3112_0-1704274855652.pngdhaval3112_0-1704274855652.png

regards,

Dhaval

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

d_eckel
Contributor
Contributor
Accepted 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.

0 Likes
Message 3 of 3

dhaval3112
Advocate
Advocate

@d_eckel ,

thanks its work perfectly.

 

0 Likes