Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
ngocson8335
in reply to: ngocson8335

So I saw the code to use 

 ExtentsWidth

ExtentsLength

ExtentsHeight

to create a stock size for a part

 

SyntaxEditor Code Snippet (ilogic)

		Thickness = Measure.ExtentsLength
		
		If Measure.ExtentsWidth > Measure.ExtentsLength Then
			Width = Measure.ExtentsWidth
		Else
			Thickness = Measure.ExtentsWidth
			Width = Measure.ExtentsLength
		End If
		If Measure.ExtentsHeight > Width Then
			Lenght = Measure.ExtentsHeight
		Else
			If Measure.ExtentsHeight > Thickness Then
				Lenght = Width
				Width = Measure.ExtentsHeight
			Else
				Lenght = Width
				Width = Thickness
				Thickness = Measure.ExtentsHeight
			End If
			
		End If

 How can I use it in Visual Studio? I try but can not! Please help me one more!

 

Thank you!

Ngoc Son
Autodesk User