GRIP to export all objects in layers
GRIP to export all objects in layers
(OP)
Hello all,
I have many objects in many layers and I want to export all the objects in a specific layer as a new part using GRIP.Is it possible?
I wrote a GRIP from which selected objects are exported to files with the filenames defined by some attribute values and layer number.But I could not find a way select everything in the specific layer and export.
It will be great helpful if somebody show me some light on this!
thanks in advance
DineshNX6.0.2.8
I have many objects in many layers and I want to export all the objects in a specific layer as a new part using GRIP.Is it possible?
I wrote a GRIP from which selected objects are exported to files with the filenames defined by some attribute values and layer number.But I could not find a way select everything in the specific layer and export.
It will be great helpful if somebody show me some light on this!
thanks in advance
DineshNX6.0.2.8





RE: GRIP to export all objects in layers
Best Regards
Hudson
www.jamb.com.au
Nil Desperandum illegitimi non carborundum
RE: GRIP to export all objects in layers
Best Regards
Hudson
www.jamb.com.au
Nil Desperandum illegitimi non carborundum
RE: GRIP to export all objects in layers
Best Regards
Hudson
www.jamb.com.au
Nil Desperandum illegitimi non carborundum
RE: GRIP to export all objects in layers
yes, I want to do each layer one after the other and there are no categories defined and parametrs of the objects are removed.
Also I want to take the file names ( one stores the file location to be created) from two of my attributes and the layer number. This is the program I wrote
ENTITY/OBJ(25)
STRING/val(132),FIL(132)
STRING/PATH(132),STR(50)
NUMBER/RESP
NUMBER/LAYNUM
FIL=&ATTVL(PART,'PROJECT',5)
IDENT/'Select Objects to Archive',OBJ,RESP
val=&ATTVL(PART,'File',5)
LAYNUM=&LAYER(OBJ(1))
STR=ISTR(LAYNUM)
PATH=val+FIL+STR
IF/RESP==3,$
CPATT/PATH,OBJ
HALT
this asks me to select objects. Is there anyway I can do a 'select all' like a macro?
thanks in advance
Dinesh
NX6.0.2.8
RE: GRIP to export all objects in layers
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: GRIP to export all objects in layers
I do not want to select anything. I want to just click a command and it should take care of making all the files in the layers.It should change the layers and select the objects in them and export as files .
if I have 5 objects in 10 layers I need 10 files with each file having those 5 objects.
Another input I want to give is any layer will not have more than 10 objects.
thanks in advance
Dinesh
NX6.0.2.8
RE: GRIP to export all objects in layers
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.