Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

idw display line weight tool button switch

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
446 Views, 5 Replies

idw display line weight tool button switch

Hi,

 

I want a to create a tool button on the annotate tab of the ribbon.

The button will toggle between having the 'display line weights' box (on the drawing tab of the application options dialog box) ticked or not ticked.

I have the settings set to display true line weights. (so i can visualize how the actual print will look, but need it off to be able to draft properly)

 

any ideas of how to set this up.

 

Cheers

Richard

5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

aww cmon

 

autodesk people...any ideas

 

or will this one get consigned to the wish list for the next 5 years

Message 3 of 6
oganm
in reply to: Anonymous

I came here hoping to find a hotkey to toggle line weight display.  Sad to see this.  I open that menu to manually toggle that setting at least a dozen times a day 5 days a week.  On a heavy drafting day I might hit it over 100 times.  I'd take the button up top, a hotkey, whatever.  I'd map it to an underused mouse button if I knew how.  Not a big deal but something to address this would be useful.

Tags (1)
Message 4 of 6
3D4Play
in reply to: oganm

I don't have an answer, but I am curious. Why toggle line weights while "drafting properly" in a 3D modeling application? Do you expose the model sketches when you create an idw of a 3D model, or do you actually draft in 2D as a deliverable?

 

Message 5 of 6
johnsonshiue
in reply to: oganm

Hi! This is a very good idea. I am not sure why I did not see the request before. I will forward it to the project team and see what we can do.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 6 of 6
sundars
in reply to: Anonymous

Hi @Anonymous 

 

Interesting request. I agree with @johnsonshiue that it would be a nice to have!

 

So, you can actually get this functionality today with a little bit of automation using VBA or iLogic. I have attached a document describing how to do this.

 

Essentially you,

1. Create a simple vba macro which does the toggle

2. Create a new ribbon button which references the macro as a user command

3. This will display the button on the ribbon

4. Click the button to enable or disable lineweights.

 

If you want to get more fancy, you can also create an iLogic Rule and insert the same piece of code into the Rule and run it. The sample vba should work fine and do the job.

 

The VBA script (is simple)

Public Sub DisplayLW_OnOff()

    Dim oLW As Boolean

    oLW = ThisApplication.DrawingOptions.DisplayLineWeights

    ThisApplication.DrawingOptions.DisplayLineWeights = Not oLW

    Dim oDoc As DrawingDocument

    Set oDoc = ThisApplication.ActiveDocument

    Dim oViews As Views

    Set oViews = oDoc.Views

    For Each oView In oViews

        oView.Update

    Next

End Sub

 

Let me know if this works or if you need further help - you can email me at 

sundarsATautodeskDOTcom

 

Thanks

-shiva

 

Shiva Sundaram
Inventor Development

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report