How To Placing Multiple Base Views at a time ???

How To Placing Multiple Base Views at a time ???

sguan1212
Enthusiast Enthusiast
2,631 Views
16 Replies
Message 1 of 17

How To Placing Multiple Base Views at a time ???

sguan1212
Enthusiast
Enthusiast

Anyone who can help please.

 

Let's say I have a weldment made up of 10 parts. I would detail this weldment on sheet 1, and sheet 2 is left for placing the 10 flat patterns which will be used for laser profile cutting.

To produce flat patterns, i would have to place base view 10 times to drop part into the sheet 1 by 1. If this weldment was to consist of more than upwards of 10 parts, this process can be very repetitive and tedious. Does anyone know a way to place multiple base views at 1 time to reduce receptive work and increase productivity ?? Is there an ilogic rule that can do this ???

 

 

 

 

0 Likes
2,632 Views
16 Replies
Replies (16)
Message 2 of 17

bradeneuropeArthur
Mentor
Mentor
You could create a sheet format. This is out of the box inventor, and no coding required!

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 17

MechMachineMan
Advisor
Advisor

@sguan1212 There are many samples and resources out there regarding similar operations.

 

https://forums.autodesk.com/t5/inventor-customization/ilogic-coding-to-create-automated-drawing/m-p/...


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
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
0 Likes
Message 4 of 17

sguan1212
Enthusiast
Enthusiast

That doesn't seem to be what I want to do. I'm not trying to automate the drawings.

 

I just want to place multiple base views on the drawing at a time. Is there anyone that can help ?

0 Likes
Message 5 of 17

sguan1212
Enthusiast
Enthusiast

hi Bradeneurope, 

Can you please elaborate on how exactly this is done

0 Likes
Message 6 of 17

MechMachineMan
Advisor
Advisor

But aren't you trying to take a process (placing 10 views, 1 at a time) that is currently done manually, and have it done.... automatically?

 

That's what automation is.

 

 

You'll have a very hard time finding something that does the drawing completely automatically because it's a very complicated process with a lot of nuances.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
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
0 Likes
Message 7 of 17

bradeneuropeArthur
Mentor
Mentor

@sguan1212

 

I wrote this:

 

"You could create a sheet format. This is out of the box inventor, and no coding required!"

 

This seems to be working for only 1 view and not multiple, sorry for my misunderstanding..

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 8 of 17

sguan1212
Enthusiast
Enthusiast

Hi Mechmachineman,

Sorry I haven't made myself clear.

What I really want is instead of only been able select 1 component to drop into the drawing at a time, I would like to be able to select a bunch of components and drop it into the drawing  

Please see attached file for a snapshot

0 Likes
Message 9 of 17

MechMachineMan
Advisor
Advisor

Ahhh. Makes sense. Something could be programmed to do that through an alternate dialog box. Seems like a good Idea for the IdeaStation if it's not available by the program already!


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
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
0 Likes
Message 10 of 17

yooko1987
Participant
Participant

Hi,

 

Do we have anything that can make this though happen? I'm also looking for this type of solution that can automate placing multiple base views of opened parts.

 

Hope there is some good news 🙂

 

Best

Yang

0 Likes
Message 11 of 17

Anonymous
Not applicable

Sorry to open this topic again, but there is no answer yet. Can somebody help? Im trying to put all frame members from the frame generator onto a sheet at once.

 

Thanks in advance.

0 Likes
Message 12 of 17

marcin_otręba
Advisor
Advisor

Hi,

 

run it when you are in drawing:

 

   Dim oFileDlg As Inventor.FileDialog
   Call ThisApplication.CreateFileDialog(oFileDlg)

   Dim sInitialDirectory As String
   oFileDlg.MultiSelectEnabled = True
   oFileDlg.ShowOpen
   
   Debug.Print (oFileDlg.FileName)
   Dim files() As String = Split(oFileDlg.FileName, "|")
   MessageBox.Show(files(0), "Title")
   Dim draw As DrawingDocument = ThisDoc.Document
   For i=0 To files.Length
If files(i)<>"" Then
Dim oBaseViewOptions As NameValueMap
        oBaseViewOptions = ThisApplication.TransientObjects.CreateNameValueMap
        ' Create the placement point object.
        Dim oPoint As Point2d
        oPoint = ThisApplication.TransientGeometry.CreatePoint2d(25, 25)
Dim oModel As Document
        oModel = ThisApplication.Documents.Open(files(i),False)
        ' Create a base view.
        Dim oBaseView As DrawingView
        oBaseView = draw.ActiveSheet.DrawingViews.AddBaseView(oModel, oPoint, 2,
  ViewOrientationTypeEnum.kIsoTopLeftViewOrientation, DrawingViewStyleEnum.kHiddenLineRemovedDrawingViewStyle,
, , oBaseViewOptions)
End If
Next

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders

0 Likes
Message 13 of 17

DRoam
Mentor
Mentor

@sguan1212, there's a free add-in called QuickViews that I think would work great for you. The way it works is it shows a list of each assembly in your drawing. You can expand an assembly and see its sub-components, and whether or not each one has been detailed yet. If it hasn't, you can just double-click it or click "Add View' to add a view of it. The QuickViews window stays open while you do this, so after you place a view you can move straight on to the next part. It's about as streamlined as it gets. Not quite as streamlined as moving straight from one component to the next, but almost.

 

Here's a link to the add-in and a video demo.

 

Hope it helps you!

Message 14 of 17

Cris_Davis
Enthusiast
Enthusiast

Has anyone found a solution to this problem?

0 Likes
Message 15 of 17

A.Acheson
Mentor
Mentor

Hi @Cris_Davis, Message 12 by marcin_otręba  is the answer. I have tested it but it simply allows multiple files to be selected and it dumps the base view on the drawing. Have you tried this? 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 16 of 17

srinivasanyl
Contributor
Contributor

Hi, many thanks for the code. But i want to place multiple flatpattern views at a time. Is it possible through ilogic code.

0 Likes
Message 17 of 17

marcin_otręba
Advisor
Advisor

Hi,

 

 

Try this rule, it will allow you to click mouse where you want to place each view or it will place in the middle of active sheet.

 

 

Class thisrule
    Dim responce As MsgBoxResult
    Dim posx, posy As Double
    Dim bstillselecting As Boolean = True
	Dim oInteraction As InteractionEvents
   	Dim oMouse As MouseEvents
            
    Sub Main()
		Dim oFileDlg As Inventor.FileDialog
		Call ThisApplication.CreateFileDialog(oFileDlg)
        oFileDlg.Filter = "Inventor Files (*.ipt)|*.ipt|All Files (*.*)|*.*"
        oFileDlg.FilterIndex = 1
        Dim sInitialDirectory As String
        oFileDlg.MultiSelectEnabled = True
        oFileDlg.ShowOpen()
        Dim files() As String = Split(oFileDlg.FileName, "|")
        responce = MessageBox.Show("Do you want to choose views locations by mouse click?", "Views", MessageBoxButtons.YesNoCancel)
        If responce = vbYes Then
            oInteraction = ThisApplication.CommandManager.CreateInteractionEvents
            oMouse = oInteraction.MouseEvents
            AddHandler oMouse.OnMouseDown, AddressOf oMouse_OnMouseDown
            oInteraction.Start()
        End If
        Dim draw As DrawingDocument = ThisDoc.Document
        For i = 0 To files.Length - 1
            If files(i) <> "" Then
                bstillselecting = True
                Dim oBaseViewOptions As NameValueMap
                oBaseViewOptions = ThisApplication.TransientObjects.CreateNameValueMap
                Call oBaseViewOptions.Add("SheetMetalFoldedModel", False)
                ' Create the placement point object.
                Dim oPoint As Point2d
                If responce = vbYes Then
                    Do While bstillselecting
                        ThisApplication.UserInterfaceManager.DoEvents
                    Loop
                End If
				If responce = vbYes Then
                	oPoint = ThisApplication.TransientGeometry.CreatePoint2d(posx, posy)
				Else
					oPoint = ThisApplication.TransientGeometry.CreatePoint2d(draw.ActiveSheet.Width/2, draw.ActiveSheet.Height/2)
				End If
                Dim oModel As Document
                oModel = ThisApplication.Documents.Open(files(i), False)
                ' Create a base view.
                Dim oBaseView As DrawingView
                oBaseView = draw.ActiveSheet.DrawingViews.AddBaseView(oModel, oPoint, 1,
              ViewOrientationTypeEnum.kDefaultViewOrientation, DrawingViewStyleEnum.kHiddenLineRemovedDrawingViewStyle,
            , , oBaseViewOptions)
            End If
        Next
        oInteraction.Stop
        oInteraction = Nothing
        oMouse = Nothing
    End Sub

    Sub oMouse_OnMouseDown(Button As MouseButtonEnum, ShiftKeys As ShiftStateEnum, ModelPosition As Point, ViewPosition As Point2d, View As Inventor.View)
        posx = ModelPosition.X
        posy = ModelPosition.Y
        bstillselecting = False
    End Sub
End Class

 

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders

0 Likes