How to add an non-primitive structures via the script command?

non-primitive
pyramid
scriptcommand

#1

I wan to add such an non-primitive structure via the script command in FDTD Solutions.
Could you let me know how to add an 4-sided truncated pyramid in Pyramids and cones which is categorized as an non-primitive structure using the script command?

Thanks in advance.


#2

Hi,
You can use the “addobject” command to do that. The parameter to use is the “Script ID” of the object. For instance, to add the “4-sided truncated pyramid”, you would use:

addobject(“trunc_4s_pyr”);

I hope this helps.
Cheers,

Greg


#3

Hi @gbaethge,

Wow, it’s working! I appreciate your help. Now I can understand how the non-primitive objectives are adding to the model.


#4

Glad I could be of any help! :slight_smile: