- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Speed up .idw's by turning off visibility based on idw view
Is there a way/would it be smart to create a program that would:
1. Use a drawing view in an .idw.
2. Pulls it's orientation/style (Hidden Lines, etc)
3. Use this orientation in the drawing to create a view in the model
4. In this model view, hide all parts that are not in camera (if the view doesn't use hidden lines/has no cut-aways)
5. Set this new view (possibly a temporary view as to not make the model messy) as the design view for the view it was based upon?
Alternate: Use the drawing view and hide all parts that do not have visible lines in the specified drawing view.
Is there a way to do this using camera information?
It seems to make sense as I have heard that drawing will not load parts that are not visible, and thus will maybe save time in mroe complex assemblies/documents.
It seems weird how inventor always wants to access all of the information pertaining to a drawing, rather than just speeding the process up immensely by allowing a mode where drawings can just become static objects, such as "suppress view/model link".
Any thoughts would help, thanks!
--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization
iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread
Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects
Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help
Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Any assistance in this area specifically would be a ton of help!
--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization
iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread
Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects
Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help
Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The untested code I have so far is:
Dim oView As DrawingView
Dim oViewDoc As Document
Dim oDoc As Document
Dim oCommandMgr As CommandManager
oCommandMgr = ThisApplication.CommandManager
oView=ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingViewFilter, "Select the base view")
oViewDoc = oView.ReferencedDocumentDescriptor.ReferencedDocument
Dim oEye As Point
'Dim oTarget As Point
Dim oUpVector As UnitVector
Dim oViewCam As Camera
oViewCam = oView.Camera
oEye = oViewCam.Eye()
'oTarge = oViewCam.Target()
oUpVector = oViewCam.UpVector()
oDoc = ThisApplication.Documents.Open(oViewDoc.FullDocumentName, True)
oDoc.Activate
oNewView = oDoc.RepresentationsManager.DesignViewRepresentations.Add()
oNewView.Activate
oNewViewCam = oNewView.Camera
With oNewViewCam
.Eye = oEye
.UpVector = oUpVector
.Fit
.Apply
End With
oNewView.SaveCurrentCamera
oNewView.Update
Dim oControlDef1 As ControlDefinition
oControlDef1 = oCommandMgr.ControlDefinitions.Item("AssemblyVisibilityCheckerCmdAllInCamera")
oControlDef1.Execute
Dim oControlDef2 As ControlDefinition
oControlDef2 = oCommandMgr.ControlDefinitions.Item("AssemblyEnhSelInvertCmd")
oControlDef2.Execute
oNewView.SaveCurrentCamera
'oNewView.SetVisibilityOfOccurrences(Occurrences As ObjectCollection, Visible As Boolean)
oNewView.Locked = True
oNewView.Update
But I don't know how I Access the Selection Set Produced By the Control Defintions. Any easy way to do this?
And is it better or easier to use this view to set visibility, or to just do it manuall then?
--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization
iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread
Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects
Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help
Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization
iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread
Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects
Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help
Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type