iLogic: enable threads in all views

iLogic: enable threads in all views

amarcoc
Advocate Advocate
921 Views
4 Replies
Message 1 of 5

iLogic: enable threads in all views

amarcoc
Advocate
Advocate

Hi.

 

I want to enable threads in all views.

 

I know the registry trick but that is not working 100%, as it stores the last used option.

 

How can I do it with ilogic or VBA?

 

Thanks in advance!

0 Likes
922 Views
4 Replies
Replies (4)
Message 2 of 5

chandra.shekar.g
Autodesk Support
Autodesk Support

Hi @amarcoc,

 

Can you please explain the situation in details with examples?

 

Possibly, screenshots would be better.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 5

amarcoc
Advocate
Advocate

Hi.

 

Thank you for the reply.

 

I want the option in picture attached always on, no exceptions, on view creation.

 

I know this trick, but its not always enabled.

0 Likes
Message 4 of 5

chandra.shekar.g
Autodesk Support
Autodesk Support

Hi @amarcoc,

 

Try the following iLogic code to check/uncheck ThreadFeature as shown in the image.

 

Sub Main()
    
    Dim oDOc As DrawingDocument
     oDOc = ThisApplication.ActiveDocument
    
    Dim oSheet As Sheet
     oSheet = oDOc.ActiveSheet
    
    Dim oView As DrawingView
     oView = oSheet.DrawingViews.Item(1)
    
    oView.DisplayThreadFeatures = True
    
End Sub

Please feel free to contact if there is any queries.

 

If solves problem, click on "Accept as solution" / give a "Kudo".

 

Thanks and regards,

 

 

 


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



Message 5 of 5

dgreatice
Collaborator
Collaborator

Hi,

 

Try this for all view and all sheet in 1 drawing File.

 

Dim oDoc As DrawingDocument

oDoc = ThisApplication.ActiveDocument

 

Dim oSheet As Sheet

Dim oView As DrawingView

 

For Each oSheet In oDoc.Sheets

For Each oView In oSheet.DrawingViews

oView.DisplayThreadFeatures = True
Next
Next

Please use the ACCEPT AS SOLUTION or KUDOS button if my Idea helped you to solve the problem.

Autodesk Inventor Professional Certified 2014