Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm very close with this one, so this should be easy...
I wish to place a surface texture symbol on a geometry intent. I have managed to achieve this, but I can't find where to adjust the A' property. I need A' = 1.6 in this instance. This is the rule I have written:
'Document setup. Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument Dim oSheet As Sheet = oDoc.ActiveSheet Dim oView As DrawingView = ThisDoc.Document.Sheets.Item(1).DrawingViews.Item(1) Dim viewname As String = ThisDoc.Document.Sheets.Item(1).DrawingViews.Item(1).Name 'get view name Dim MainSheet = ThisDrawing.Sheets.ItemByName("Sheet:1") Dim VIEW1 = MainSheet.DrawingViews.ItemByName(viewname) 'Get Intent. Dim SealPoint2 As GeometryIntent = VIEW1.GetIntent("SealFace", PointIntentEnum.kMidPointIntent, nearPoint := VIEW1.SheetPoint(0, 1)) 'Add it to collection as required by SurfaceTextureSymbol definition. Dim mySurfaceTextureCollection As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection mySurfaceTextureCollection.Add(SealPoint2) 'Setting up symbol and placing it. Dim mySymbolDef As SurfaceTextureSymbolDefinition = oSheet.SurfaceTextureSymbols.CreateDefinition mySymbolDef.SurfaceTextureType = kMaterialRemovalRequiredSurfaceType Dim oSymbol As SurfaceTextureSymbol = oSheet.SurfaceTextureSymbols.AddByDefinition(mySurfaceTextureCollection, mySymbolDef)
When you run it works:
I just require A' = 1.6 on it. I've attached the files.
Thanks,
Harvey
Solved! Go to Solution.