Hi,
i have made the previously posted code into a small VBA project. Please comment if you find it useful 🙂
This tool is for the drawing tab only.
Instructions
go to TOOLS tab and click the VBA editor button
in the VBA editor. go to FILE / Load Project
Browse to the project and click it to load (you need to save it in this path)
C:\Users\Public\Documents\Autodesk\Inventor 2013\VBA Addins (mine isnt but your should) 🙂
you should see it in the browser like this
Click save and close the editor. (when inventor Quits, it may ask you to save changes. Save them.
In Inventor, right click on the ribbon tab and select 'Customize user commands..'
you will get a box like this.
select 'Macros' in the top left drop down box
select 'Drawing | Tools' in the top right drop down box
Highlight the Macro called 'DrawingLabels' in the left pane and click the >> button to move it to the right (ribbon)
clict the check boxes like mine (to show text) and then click close.
Your button will then appear on the ribbon untder the 'Tools' tab like this
That should be it.
i ask that if you use my tool, you do NOT change the name 'ShawTools' or perceive it as your own tool. 🙂
There is a video of the tool here-Drawing Views Video
How it works-
Click you button to start the tool. it will appear like this-
Add Scale - when checked, it will include the active scale in the view label. There is also a visual guide under the image on the tool
This Sheet - when clicked (as shown) it will only change the views on the active sheet
All Sheets - when clicked, it will apply the view labels to ALL sheets in the drawing file
1/7 - this is a counter 1 being the sheet and 7 being the amount of sheets in the drawing file. you can see on the video that the number increases for every sheet that is selected. This it to give you an idea when it will finish.
Enjoy 🙂
Nigel
Thanks
Nacho
Automation & Design Engineer
Inventor Programmer (C#, VB.Net / iLogic)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Hi
Very nice and descriptive. I do have two or three problems.
1. I do not have that vba addins folder. Is that one you created?
2. I'm on 2012 - is that metter?
3. After i run macro got error
Public Sub SetViewLabels() and
Is it there way to fix i beleive this is good add save a lot time.
Thanks
Nacho
Automation & Design Engineer
Inventor Programmer (C#, VB.Net / iLogic)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
This is what i have i digg everywher but nothing i can find. This is default location.
Thanks for your help
Nacho
Automation & Design Engineer
Inventor Programmer (C#, VB.Net / iLogic)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Default vba project folder in app. opt is %PUBLICDOCUMENTS%\Autodesk\Inventor 2012\Default.ivb
and i do not have any problem to load project. But when i click run it make error in code as i described above
Nacho
Automation & Design Engineer
Inventor Programmer (C#, VB.Net / iLogic)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Nacho
Automation & Design Engineer
Inventor Programmer (C#, VB.Net / iLogic)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Nacho
Automation & Design Engineer
Inventor Programmer (C#, VB.Net / iLogic)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Ok this is what i have. I loaded DrawingViews.ivb and than run this is what i have.
Hi
put this in your MODULE (make sure it doesnt already exist)
Public Sub DrawingLabels() frmDrawingViews.Show End Sub
then in the customize user commands, add the macro called 'DrawingLabels' to the menu. This will call the form and open it. You are getting the error because you are not calling the correct routine. Objects are required from the form and becaise it is not loaded, you get errors.
Please try this and get back to me. I have tested this on 3 computers 🙂
Thanks
Nigel
Nacho
Automation & Design Engineer
Inventor Programmer (C#, VB.Net / iLogic)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Do i missing in here? I do not have macro Drawing Views? Should i have ? This macro does nothing? When i click Macro icon on ribbon it happening nothing. Could you post again that ivb please. Something but little is wrong in here. I do have everything you are asking but still error.
Thanks again for your help
Hi,
Unload the project
Restart inventor
Go to the VBA Editor and load project
create a NEW module in your APPLICATION PROJECT and call it MOD_DrawingViewCall
click into the module and paste this
Public Sub DrawingLabels() frmDrawingViews.Show End Sub
save & close the editor
right click on the menu to customize
the macro named "DrawingLabels" will be visible in the left pane
click it over to the right
that should be it. Download the file again from here, its the same as the one i made.
That should work just fine 🙂
Thanks
Nigel
Nacho
Automation & Design Engineer
Inventor Programmer (C#, VB.Net / iLogic)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
I tried every possible solution but no success, unfortunately. I would like to have fix this one but ...
Nacho
Automation & Design Engineer
Inventor Programmer (C#, VB.Net / iLogic)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Apreciate that but it is controlled by corporate and it is not allowed.:(