Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to set work plane visibility false programmatically ?

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
arunkgvm
483 Views, 3 Replies

How to set work plane visibility false programmatically ?

Any one know how to set the visibility of workplanes in an assembly file to false.???

--- *AM* ----
Tags (1)
3 REPLIES 3
Message 2 of 4
jdkriek
in reply to: arunkgvm

This will turn them all off

 

For Each oWP In ThisDoc.Document.ComponentDefinition.WorkPlanes
	If oWP.Visible = True Then
		oWP.Visible = False
	End If
Next
Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


Message 3 of 4
Mike.Wohletz
in reply to: arunkgvm

This may help if you are refereing to all sub components as well as the active document. 

http://inventortrenches.blogspot.com/2013/03/turn-onoff-all-workfeatures-with-ilogic.html

 

Message 4 of 4
arunkgvm
in reply to: arunkgvm

Thanks a lot..its working fine..... there is already some work plane's visibility false but when I open the inventor using vb.net code they are showing.I change the view by code then it will okey.here is the code

 

Dim doc As AssemblyDocument = inventorApp.ActiveDocument
Dim ADef As AssemblyComponentDefinition = doc.ComponentDefinition
Dim dRepMgr As RepresentationsManager = ADef.RepresentationsManager
Dim dRep As DesignViewRepresentation = dRepMgr.ActiveDesignViewRepresentation
dRep = dRepMgr.DesignViewRepresentations.Item(2)
dRep.Activate()

 

Spoiler
 
--- *AM* ----

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

Post to forums  

Autodesk Design & Make Report