What's new

How do I get the diameter of an edge?

albie0803

Alibre Super User
Diameter is a member of Edge

Edge<43> = 10

How should this be written? I have tried a few things but really have no idea. The reference tells me that Diameter is a member of Edge but doesn't show me how to create the correct syntax to read the value.
https://www.alibreforum.com/forum/m...:/class_alibre_script_1_1_a_p_i_1_1_edge.html
CylDia = Edge<45>(Diameter)
print "\nYou chose a cylinder diameter of %.4f \n" % CylDia


gives me

You chose a cylinder diameter of 0.0000
 

albie0803

Alibre Super User
Hello Andy,

A cylindrical face when selected shows the diameter in the status bar. Can I get this value via scripting?
 

ajayre

Alibre Super User
Currently only diameters of edges are supported. Probably best to submit a ticket with your feature request.

Andy
 

oldfox

Alibre Super User
Andy, you mentioned in another thread that the new release would have something pertaining to this. Would that make it possible to
click on a face or edge and insert the associated number into a script?
 

oldfox

Alibre Super User
See post #'s 6 & 8 from "Improvements to Alibre Script" created by Lew Merrick.

NateLiqGrav said:
UtilityDialog GUI selection options for lists of multiple parts, faces, edges, points, or sketch objects. (Like Alibre pattern dialogs)

This one is already done for the next release. Andy
 
Top