I have a MPP created by rod1=rodCreatePath( ... ).
rod1 contains several subPaths (path1, path2, rect1, rect2 ... ).
How can I do the follwing operations using SKILL?
1. Delete path1
2. Un-attach path1 from rod1
3. Change path1 to another layer
Thanks very much.
The quickest flow I cant think of is first take the pointlist of the original MPP
1 delete the original then redraw it without the path1
2&3 using the same point list, redraw the path with leCreatePath with your new desired layer. (you may need to adjust the points, especially the end points)
its a quick solution so Im not sure if this is the best for you.
In reply to lrl12skdev:
Hi lrlsk ,
Thanks for your solution.
But I think it is a little wired.
You have to destroy your house and reconstruct it just because you don't like the color of your door.
In reply to sparksu:
wierd as it may seem but actually it's one of the basic tricks in programming. lets just say stretch command doesn't exist yet, how would you do it? isn't it just easy to reapply the basic wire command with a new set of points and delete the old one?
How do you think a flash memory is being written? if I tell you a whole block of data needs to be erased and rewritten only because they need to change 1 bit of information, would you believe that?
Sparksu,From your rod object, rod1, make sure you get your all of your shape ids that you need. Then you can use rodUnNameShape(rod1) to flatten the rod object. You can then manipulate the shapes however you want.
The main path object is: rod1~>dbId
The subShapes are: rod1~>subShapes