Message 1 of 4
I can create " centermarks " from iLogic ?

Not applicable
09-15-2016
07:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone!
I 'm trying to create center marks using iLogic .
I created attributes "attribute helpper " Brian Ekins
http://modthemachine.typepad.com/my_weblog/2013/08/attribute-helper-update.html
And then I try to use my element that attribute as input and generate the center mark .
Here my code:
Dim oDrawDoc As DrawingDocument oDrawDoc = ThisDoc.Document Dim oSheet As Sheet oSheet = oDrawDoc.ActiveSheet Dim oView As DrawingView oView = ActiveSheet.View("FRONT_VIEW").View Dim oAssyDoc As AssemblyDocument oAssyDoc = ActiveSheet.View("FRONT_VIEW").ModelDocument Dim oCenterMarks As CenterMarks oCenterMarks = oSheet.CenterMarks Dim aoEdge4 As Face oObjs = oAssyDoc.AttributeManager.FindObjects("DIM", "FDE", "1") aoEdge4 = oObjs.item(1) Dim aoDrawCurves4 As DrawingCurve oDrawViewCurves = oView.DrawingCurves(aoEdge4) aoDrawCurves4 = oDrawViewCurves.item(1) Dim oDim2 As CenterMarks oDim2 = oCenterMarks.Add(oSheet.oSheet.CreateGeometryIntent(aoDrawCurves4))
And i have this error:
This is the reason why I wonder if you can use center marks in iLogic .
I am new to programming , to generate this code and used my logic to replace that eh caught fragments found in this forum but since it can not do.
an apology for my bad English and dialog with the error displayed in Spanish .
Thank you very much! Greetings to all