Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a few images that I want to display, position and size based on some conditions of 3D model (by using iLogic).
To control the position of images on drawing sheet, I have inserted the image in the Sketch Symbols.
By using the attribute helper, I can define the position of images (sketch symbols) and define the scale. But I'd like to know/access the height and width of sketch symbols similar to the way we can define height of views (View.Height).
But the problem is that ".Height" or ".Width" returns the error. I need the height and width to set the relative position the other images on the sheet.
Pictures of attribute and sketch symbol attached.
Following is the code:
'References this document Dim oDrawDoc As DrawingDocument oDrawDoc = ThisDoc.Document 'References this drawing sheet Dim oSheet As Sheet oSheet = oDrawDoc.ActiveSheet 'Readys code for Creation of reference points for dimension placement Dim oTG As TransientGeometry oTG = ThisApplication.TransientGeometry ' 'Readys code for creation of general dimensions Dim oGeneralDims As GeneralDimensions oGeneralDims = oSheet.DrawingDimensions.GeneralDimensions '---------- Dim oSkSymDef As SketchedSymbol oObjs = oDrawDoc.AttributeManager.FindObjects("A", "A", "1") oSkSymDef = oObjs.Item(1) Dim oPt1 As Point2d oPt1 = oTG.CreatePoint2d(0, 0) oSkSymDef.Position = oPt1 oSkSymDef.Scale= 0.5
Solved! Go to Solution.