Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an ilogic rule for exporting the flat pattern to DXF
Before the export it asks the user if the thing has the right orientation but at that time it only shows the current View position which can be moved and rotated.
So it isn’t an indicator for correct orientation.
In Inventor 2019 there was no problem because in the flat pattern the View was never rotated and always showing normal to the flat pattern.
How can I view the standard Orientation as in earlier versions.
Basically I want the To View the Model Normal to .FlatPattern.BaseFace when the message box shows up.
I've tried arround with oview and ocamera and stuff but no success yet.
thanks
'Flip Alignment Type ' Set a reference to the active document. Dim oPartDoc As PartDocument oPartDoc = ThisApplication.ActiveDocument 'ensure this part has a flat pattern Dim oSMDef As SheetMetalComponentDefinition oSMDef = oPartDoc.ComponentDefinition If oSMDef.FlatPattern Is Nothing Then 'create flat pattern oSMDef.Unfold Else End If Question = MessageBox.Show("Is the orientation correct?" ,"leave it or flip?" ,MessageBoxButtons.YesNo) If Question = vbNo Then 'oCompDef.FlatPattern.FlipBaseFace Dim oAlignmentType As AlignmentTypeEnum Dim oAlignedTo As Object Dim oAlignmentDirection As Boolean 'get current alignment parameters oSMDef.FlatPattern.GetAlignment(oAlignmentType, oAlignedTo, oAlignmentDirection) 'toggle alignment horizontal/ vertical parameter 'kHorizontalAlignment = 64257 'kVerticalAlignment = 64258 If oAlignmentType = 64257 Then oAlignmentType = 64258 Else oAlignmentType = 64257 End If oSMDef.FlatPattern.SetAlignment(oAlignmentType, oAlignedTo, oAlignmentDirection) End If 'zoom all ThisApplication.ActiveView.Fit
Solved! Go to Solution.