Jump to content
Developer Wiki and Function Reference Links ×

Set an object parameter from in PIO


Recommended Posts

I'm writing a script for ProfiledMetalSection

The width of sheet of profile metal always ends with the trapazoid coming down. Hence the length is determined by the profile shape.

I'm using a linear tool so I can stretch the line to the desired length, but I want the code to then set the actual length that works for the profile.

I need to be able to use the value to then reset the linelength parameter of the PIO.

Link to comment

You can probably do it in much the same way you were setting the child-object's params from the parent object in your earlier post, but using the handle & name from getcustom.

getcustomobjectinfo(PIOname,PIOHandle,PIOrecordhandle,PIOwallhandle);

SetRField(PIOHandle, PIOname,'pLineLength',newLineLength);

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...