|
Very bizarre, I was expecting an email when I recieved a response.. must check my settings.
Thankyou very much. It works perfectly ...after a few tweaks to get my name/strings/shapes correct.
I say perfectly, this code does but the bit I am attempting to excecute isn’t.
for Xobj in XREFNames do
( i=i+1
myNewObjs = getMAXFileObjectNames xobj
xrefs.addNewXRefObject xobj myNewObjs modifiers: #merge manipulators: #merge
for obj in shapes where ((subString obj.name 1 OBJNames.count) == OBJNames) do
(
select obj
instanceReplace obj myNewObjs
print “test”
)
)
Is it a timing issue? Does the xref appear instantly and become available to select? As soon as I try to replace or select the xref to instance the script the script hangs. When I say hangs, it stops processing on the first object in the array before the print"test" but doesn’t lock up.
I suspect either a syntax or timing issue but can’t see where I am going wrong.
Many Thanks.
Tim
Author: El-d
|