Jump to content

Selection Element with User-defined script function


---
 Share

Recommended Posts

Hello

I would like to learn how do i use the in built User-defined script function, when creating a list of elements in a dialog.

I am using GOM 2019, and already read a few things on github about the steps to do it. however if I try to use the example scripts on there, I always get Errors. Don't know if it is version problems, because the github should be more recent.

The picture below is to explain what i want to use

image.png.77b9ec0fe8a8a00e4fc285f100475ce7.png

 

And this is the code I'm working with:

RESULT=gom.script.sys.execute_user_defined_dialog (content='<dialog>' \
' <title>Window</title>' \
' <style></style>' \
' <control id="OkCancel"/>' \
' <position>automatic</position>' \
' <embedding>always_toplevel</embedding>' \
' <sizemode>fixed</sizemode>' \
' <size height="113" width="252"/>' \
' <content columns="1" rows="1">' \
'  <widget type="input::point3d" rowspan="1" row="0" columnspan="1" column="0">' \
'   <name>point</name>' \
'   <tooltip></tooltip>' \
'   <supplier>custom</supplier>' \
'  </widget>' \
' </content>' \
'</dialog>')

 

Where and how can I insert my own funtions, so that the list has surfaces or elements diferent than lines, cylinders, circles, points or planes

Thanks
 

Edited
Link to comment
Share on other sites

  • 3 weeks later...
 Share

×
×
  • Create New...