# copy and paste....

 Register Blogs Members List Search Today's Posts Mark Forums Read

 February 20, 2003, 08:44 copy and paste.... #1 giosue Guest   Posts: n/a Another question.... I'have a computational domain in which is possible to identify a single entity repeating 3 times. I generated the first, does anybody knows how can I repeat it and attach it to the firstone? thank...

 February 20, 2003, 11:34 Re: copy and paste.... #2 cjtune Guest   Posts: n/a Try using the command CGEN. Supplying it with the correct range of cells, vertex offset, and coordinate offsets, you can copy and paste a block of cells. You need to specify its last parameter to 'create vertices'. Put it within a loop that also increments the cell number range and I think you can copy and paste n times. To attach all of them together, try merging vertices or creating couples -CGEN won't automatically bind them together for you.

 February 20, 2003, 12:24 Copy / Move #3 Murali Guest   Posts: n/a To copy: The command CGEN creates as many copies as you want in whatever location. You can also reflect the cells through CGEN. U can use the following code: *get mxv1 mxve ! Obtain the maximum vertex number CSET NEWS ..... ! Put the cells you want to copy in the cset CGEN, 2, mxv1 + 1,CSET,,,VGEN,1,xoff,yoff,zoff ! where xoff, yoff and zoff are the various offsets you want to use for creating the cells. 2 is the number of sets you generate "including" the original set. Hence using the number 2 you generate 1 copy of the original cells. To move: Sometimes without copying you just want to move a set of cells. As fas as I know this cannot be achieved by the command CGEN. Use VGEN: CSET NEWS ..... ! Put the cells you want to copy in the cset VSET NEWS CSET ! Make new vset with the vertices of cset VGEN, 2, 0,VSET,,,xoff,yoff,zoff ! xoff, yoff and zoff are similar to the one mentioned above

 March 3, 2003, 05:16 Re: Copy / Move #4 giosue Guest   Posts: n/a Thank Murali... but I'm trying to use the command cgen as you mentioned above but the problem is that I have problem when I try to replicate my cset ten times about, it results in corrupted cells like cubist sculpture mmmmhh... insted of the number of copy is little (4,5)everything is Ok!!! Does anybody have suggestions?

 March 3, 2003, 10:42 Re: Copy / Move #5 cjtune Guest   Posts: n/a Check your offset vertex number supplied to CGEN. Should be the max used vertex number (eg. vertex no. 35676 is the last vertex on the vlist for all vertices, then 35676 is your vertex number offset to use).