Billibong
11-17-2005, 09:42 PM
Hi,
I'm a newbee to Maxscript (although I know AutoLisp very well) and I'm finding it much harder to use maxscript because max itself is so much deeper than AutoCAD. Anyway-
I have 2 questions:
1. How do I select objects by block sub-objects?
2. How do I do string "strips" (in AutoLISP it's "Substr" function), so I can disect strings character by character?
Maybe there is an easier way altogether. What I'm tring to do is this: I have layers of doors that are getting imported from AutoCAD as 2d Block objects, each with a name that describes the door type and size. I'm writing a script to automatically substitute these blocks with Pivot doors. Typical name of a block would be SL-36x6x80, this is a Single pivot Left hand hinged door 36" wide, 6" deep, 80" high. So it would be great if I could strip out the name get the sizes and type and set them to variables to create new 3d doors.
Any help would be greatly appriciated...
Thanks,
Billibong
I'm a newbee to Maxscript (although I know AutoLisp very well) and I'm finding it much harder to use maxscript because max itself is so much deeper than AutoCAD. Anyway-
I have 2 questions:
1. How do I select objects by block sub-objects?
2. How do I do string "strips" (in AutoLISP it's "Substr" function), so I can disect strings character by character?
Maybe there is an easier way altogether. What I'm tring to do is this: I have layers of doors that are getting imported from AutoCAD as 2d Block objects, each with a name that describes the door type and size. I'm writing a script to automatically substitute these blocks with Pivot doors. Typical name of a block would be SL-36x6x80, this is a Single pivot Left hand hinged door 36" wide, 6" deep, 80" high. So it would be great if I could strip out the name get the sizes and type and set them to variables to create new 3d doors.
Any help would be greatly appriciated...
Thanks,
Billibong
