Ilogic to auto-resize plans

Ilogic to auto-resize plans

amarcoc
Advocate Advocate
730 Views
3 Replies
Message 1 of 4

Ilogic to auto-resize plans

amarcoc
Advocate
Advocate

Hi.

 

Does anyone know how to use ilogic to enable the auto-resize plans option?

 

Thanks

0 Likes
Accepted solutions (1)
731 Views
3 Replies
Replies (3)
Message 2 of 4

Owner2229
Advisor
Advisor
Accepted solution

Hey, like this?

 

Dim oDoc As Document = ThisApplication.ActiveDocument
For Each W As WorkPlane In oDoc.ComponentDefinition.WorkPlanes
	W.AutoResize = True
Next
Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods
Message 3 of 4

amarcoc
Advocate
Advocate

Yep, that's it.

 

Nice and quickly, again 🙂

0 Likes
Message 4 of 4

dusan.naus.trz
Advisor
Advisor

Next Possibility

 

Dim oDoc As Document = ThisApplication.ActiveDocument
For Each WA As WorkAxis In oDoc.ComponentDefinition.WorkAxes
	WA.AutoResize = True
Next

For Each WP As WorkPlane In oDoc.ComponentDefinition.WorkPlanes
	WP.AutoResize = True
Next
0 Likes