Jump to content

Cut shape out of Pluginobject


Recommended Posts

Hello,

 

I have created a custom PointObject for SlabFoundations. (see picture)

Everthing is working just fine but i was wondering if there is a special event where i can decide what to do when i draw a 2d shape over it and want to cut it out of the geometry.

If this is possible please let me know and maybe a small example on how to go about it.

 

Thanks in advance 😄 

 

def main():
    if event == kObjOnInitXProperties:
        setlayout()

    elif event == kResetEventID:
        vs.SetClass(objecthandle, klasse_object)
        set_by_class(objecthandle)

        if bovennet:
            vs.EnableParameter(objecthandle, "Type_BN", True)
        else:
            vs.EnableParameter(objecthandle, "Type_BN", False)

        if ondernet:
            vs.EnableParameter(objecthandle, "Type_ON", True)
        else:
            vs.EnableParameter(objecthandle, "Type_ON", False)

        if exclplaat:
            vs.EnableParameter(objecthandle, "Plaatdikte", True)
        else:
            vs.EnableParameter(objecthandle, "Plaatdikte", False)

        create_object()
        calc_opp()
        calc_vol()


image.thumb.png.d860286d3590a2ff5d0a8055e19b1437.png

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...