Visual Basic Customization

Reply
Valued Contributor
thavasi1982
Posts: 75
Registered: ‎01-23-2009
Message 1 of 4 (167 Views)

Trim

167 Views, 3 Replies
09-26-2012 02:21 AM

How to trim the object using VB coding

 

 

 

STM

Mentor
truss_85
Posts: 173
Registered: ‎02-13-2011
Message 2 of 4 (149 Views)

Re: Trim

09-26-2012 10:41 PM in reply to: thavasi1982

There is no specific code for trimming.

You can use send command to trim object.

Valued Contributor
thavasi1982
Posts: 75
Registered: ‎01-23-2009
Message 3 of 4 (141 Views)

Re: Trim

09-27-2012 02:07 AM in reply to: thavasi1982

Thanks for your reply.

 

How to use sendcommand for crossing option as the crossing option does not accept co-ordinates. Instead it asks to pick a point on screen.I have attached a drawing, I have tried many ways to get the final output as you seen in the drawing but i cannot.

 

 

STM

 

Member
Peter.Huitsingh
Posts: 5
Registered: ‎05-09-2012
Message 4 of 4 (139 Views)

Re: Trim

09-27-2012 02:14 AM in reply to: thavasi1982

Maybe an idea to get the objects, try to .IntersectWith and manually replace the last coordinate with the InterSect-Point? The last coordinate can be determined by the Clicked Points (I think you use GenEntity?)

 

Util..getentity Object1, PickPoint1

Util..getentity Object2, PickPoint2

 

IntersectPoint=object1.IntersectWith (Object2,acExtendNone)

 

IntersectPoint( [0-2] ) has the coordinates...

 

Peter

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!