Home > Community > Forums > Custom IC SKILL > How to modify/delete a subPath from a MPP using SKILL?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to modify/delete a subPath from a MPP using SKILL? 

Last post Fri, Aug 27 2010 6:59 AM by dmay. 4 replies.
Started by sparksu 25 Aug 2010 11:27 PM. Topic has 4 replies and 1742 views
Page 1 of 1 (5 items)
Sort Posts:
  • Wed, Aug 25 2010 11:27 PM

    • sparksu
    • Top 500 Contributor
    • Joined on Thu, May 14 2009
    • Beijing, China
    • Posts 17
    • Points 295
    How to modify/delete a subPath from a MPP using SKILL? Reply

    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.

    Filed under: ,
    • Post Points: 20
  • Thu, Aug 26 2010 4:35 AM

    Re: How to modify/delete a subPath from a MPP using SKILL? Reply

    Hi sparksu,

     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.

     BR  -lrlsk 

    • Post Points: 20
  • Thu, Aug 26 2010 6:48 PM

    • sparksu
    • Top 500 Contributor
    • Joined on Thu, May 14 2009
    • Beijing, China
    • Posts 17
    • Points 295
    Re: How to modify/delete a subPath from a MPP using SKILL? Reply

    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.

     

    Sparksu

    • Post Points: 35
  • Fri, Aug 27 2010 12:52 AM

    Re: How to modify/delete a subPath from a MPP using SKILL? Reply

    Hi 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?

     

     

    • Post Points: 5
  • Fri, Aug 27 2010 6:59 AM

    • dmay
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Allen, TX
    • Posts 394
    • Points 7,420
    Re: How to modify/delete a subPath from a MPP using SKILL? Reply

    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

    Derek

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by sparksu at 25 Aug 2010 11:27 PM. Topic has 4 replies.