Skip to content
Discussion options

You must be logged in to vote

Hi @C-Ehmke ,

To create a segmented helix you need to use the create_udp method. As you can see this option is available in User Defined Primitive.
You can pass parameters as a list of list and then call the create_udp method:

udp_params = [
    ["RectHeight", "1mm"],
    ["RectWidth", "2mm"],
    ["StartHelixRadius", "10mm"],
    ["RadiusChange", "0mm"],
    ["Pitch", "3mm"],
    ["Turns", "2"],
    ["SegmentsPerTurn", "20"],
    ["RightHanded", "1"]
]

udp = m3d.modeler.create_udp(
            dll="SegmentedHelix/RectHelix", parameters=udp_params, library="syslib", name="my_helix"
        )

Hope this helps,

Kind regards,

Giulia

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@C-Ehmke
Comment options

Answer selected by gmalinve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants