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

Hi @Maxim-CADman77 

 

See the attached zip file.

 

  • First step is to remove the adaptivity of the spring.
  • Next delete the constraints on the spring and replace them ( not sure why I had to do that, but I did)
  • Then create a rule and right click on the sprig and use Capture Current State as shown . 
    • That will create the code and the named entities in the spring

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

Curtis_Waguespack_0-1691077799390.png

 

If Spring_Exist = True Then

	Dim scissor_spring_1 = Components.Add("scissor_spring:1", "scissor_spring.ipt")

	Constraints.AddInsert("Insert:2", "scissor_spring:1", "Edge0", "blade_main:1", "Edge0", axesOpposed := False)
	Constraints.AddMate("Mate:1", "scissor_spring:1", "Edge1", "blade_main:1", "Face0")
Else
	Try : Component.InventorComponent("scissor_spring:1").Delete : Catch : End Try
End If