Welcome to 3DCADForums

Join our CAD community forums where over 25,000 users interact to solve day to day problems and share ideas. We encourage you to visit, invite you to participate and look forward to your input and opinions. Acrobat 3D, AutoCAD, Catia, Inventor, IronCAD, Creo, Pro/ENGINEER, Solid Edge, SolidWorks, and others.

Register Log in

Get diameter of a circle from list of circles


New member
I created a simple list which populates all circles created in a part body:
`PartBody`.Query("Circle", "")
This will keep adding any new circles also that I create later in the design.

Now I want to get the diameter of a circle, say 2nd circle in the list and assign it to a length parameter.
To do so, I did this: Created a length parameter, Length.1 and assigned it a formula:
Length.1 = length(`List.1` ->GetItem(2))

But the value keeps coming as 0mm. What seems wrong here?
Kindly help.