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
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.
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?
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!
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