Custom 3D model using scripting PYTHON

Custom 3D model using scripting PYTHON

Anonymous
Not applicable
2,124 Views
3 Replies
Message 1 of 4

Custom 3D model using scripting PYTHON

Anonymous
Not applicable

Dear ALL,

 

I have enquiry about scripting Python to created pipe support. I try sample scripting from others model to test at catalog builder. When i open at Plant 3D, the model/object not appear.?

 

How to import scrpting at PLANT 3D.

 

Best regards,

Anuar

0 Likes
2,125 Views
3 Replies
Replies (3)
Message 2 of 4

dave.wolfe
Advisor
Advisor

Did you use PLANTREGISTERCUSTOMSCRIPTS?

Dave Wolfe
Isaiah 57:15

EESignature

Plant 3D Wish list

0 Likes
Message 3 of 4

Anonymous
Not applicable

I did when i want to upload my script at catalog builder. Can you give advise for the process to do it.?

0 Likes
Message 4 of 4

Anonymous
Not applicable

Hi mr wolfe,

 

I try your process guide for scripting python for Plant 3D, but i got some problem in scrpting. Can you advice me please. I attached my scrpting file and file directory. Can you explain for varmain import what's mean of that.?

 

I done do it add arxadapter, registerscript and test script shortcut at tool pallete.

 

#import aqa.math
#import math
#from varmain.primitiv import *
#from varmain.var_basic import *
#from varmain.custom import *

@Anonymous(Group="Vessel", TooltipShort="Skirt", Tooltiplong="A skirt with a base", LengthUnit="mm")
@matthias_hein("MainDimension")
@Anonymous(D=LENGTH, TooltipShort="Skirt OD")
@Anonymous(L=LENGTH, TooltipLong="Length of the Skirt")
@Anonymous(D1=LENGTH, TooltipShort="Base OD")
@Anonymous(L1=LENGTH, TooltipShort="Base Thickness")
@Anonymous(OF=LENGTH, TootipShort="Skirt Thickness")

def SIMPLEVESSELSKIRT (s, D=48, L=48, D1=50, L1=.25, OF=0, **kw):
  #create the base shape of the skirt
  thck=OF
  if thck<=0:
     thck=.05*D
  s=CYLINDER(s, R=D/2, H=L, O=(D-thck)/2)

 

0 Likes