Billibong
11-20-2005, 03:22 PM
Hi,
I'm writting a script to replace 2d door blocks with a referenced "pivot door". Basically I want all 2d blocks (from AutoCAD) named "Block:XDR-SL-36x8x80" to be replaced by a "pivot door" I create using the same sizes (36"wide, 8"dp, 80" high). The problem is I'm using a substitute modifier and it is writting the correct name of the replacer object in the substitute dialogue box but not actually substituting the object! Am I missing a step here?
DoorRef = $ ---This is my selected pivot door I want to use to use as the replacer object
$.name = "REF-SL-36x8x80" --- I rename the object to this
select DoorJamb --- This is the selected 2d block I want to add the substitute modifer to
modPanel.addModToSelection (Substitute ()) ui:on
$.modifiers[#Substitute].objectName = DoorRef.name
$.modifiers[#Substitute].SubstituteType = "Type: Instance"
Thanks,
Billibong
I'm writting a script to replace 2d door blocks with a referenced "pivot door". Basically I want all 2d blocks (from AutoCAD) named "Block:XDR-SL-36x8x80" to be replaced by a "pivot door" I create using the same sizes (36"wide, 8"dp, 80" high). The problem is I'm using a substitute modifier and it is writting the correct name of the replacer object in the substitute dialogue box but not actually substituting the object! Am I missing a step here?
DoorRef = $ ---This is my selected pivot door I want to use to use as the replacer object
$.name = "REF-SL-36x8x80" --- I rename the object to this
select DoorJamb --- This is the selected 2d block I want to add the substitute modifer to
modPanel.addModToSelection (Substitute ()) ui:on
$.modifiers[#Substitute].objectName = DoorRef.name
$.modifiers[#Substitute].SubstituteType = "Type: Instance"
Thanks,
Billibong
