11-16-2016
02:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-16-2016
02:16 PM
Hello Robert,
try this iLogic rule in a drawing. create some Text in the drawing and run the rule.
depending on the line(s) that are not commented, the justification will change...
(iLogic has VB.net in the Back, so you can run VB.net code in iLogic)
Dim oDrawDoc As Inventor.DrawingDocument = ThisApplication.ActiveDocument Dim oPickedDrawingNote As Inventor.DrawingNote = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingNoteFilter, "Select text") oPickedDrawingNote.HorizontalJustification = HorizontalTextAlignmentEnum.kAlignTextCenter ' oPickedDrawingNote.HorizontalJustification = HorizontalTextAlignmentEnum.kAlignTextLeft ' oPickedDrawingNote.HorizontalJustification = HorizontalTextAlignmentEnum.kAlignTextRight ' ' oPickedDrawingNote.VerticalJustification = VerticalTextAlignmentEnum.kAlignTextBaseline this option gives me an error oPickedDrawingNote.VerticalJustification = VerticalTextAlignmentEnum.kAlignTextLower ' oPickedDrawingNote.VerticalJustification = VerticalTextAlignmentEnum.kAlignTextMiddle ' oPickedDrawingNote.VerticalJustification = VerticalTextAlignmentEnum.kAlignTextUpper
If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated
Succes on your project, and have a nice day
Herm Jan
Kudo's are also appreciated
Succes on your project, and have a nice day
Herm Jan