.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Offset Polyline

14 REPLIES 14
Reply
Message 1 of 15
Anonymous
1066 Views, 14 Replies

Offset Polyline

Hi, all.
Could anyone share 'Offset Polyline' example code?
I found the example code written in LISP, but what I need is .net example.

I would be much and much .... appreciated if you do that.
14 REPLIES 14
Message 2 of 15
Anonymous
in reply to: Anonymous

I can offset pline, but I wish to do as in AutoCad do.
Message 3 of 15
Anonymous
in reply to: Anonymous

maybe try the OffsetCurve2D class?
I did a search for offset in the object browser and thouht that was the closest.

gilseorin <>
|>Hi, all.
|>Could anyone share 'Offset Polyline' example code?
|>I found the example code written in LISP, but what I need is .net example.
|>
|>I would be much and much .... appreciated if you do that.
James Maeding
Civil Engineer and Programmer
jmaeding - at - hunsaker - dotcom
Message 4 of 15
Anonymous
in reply to: Anonymous

No James........

The OffsetCurve2D class does not offset a polyline.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"James Maeding" wrote in message news:5500869@discussion.autodesk.com...
maybe try the OffsetCurve2D class?
I did a search for offset in the object browser and thouht that was the closest.

gilseorin <>
|>Hi, all.
|>Could anyone share 'Offset Polyline' example code?
|>I found the example code written in LISP, but what I need is .net example.
|>
|>I would be much and much .... appreciated if you do that.
James Maeding
Civil Engineer and Programmer
jmaeding - at - hunsaker - dotcom
Message 5 of 15
Anonymous
in reply to: Anonymous

You're probably not going to have much luck
requesting custom sample code here. That's
because unlike LISP or VBA, even simple things
are fairly complicated and involved, to the point
where providing you with custom samples is
not something that most are willing to do.

If you're extremely lucky, perhaps someone may
have done what you need already as part of real
work, and can share some of the code they wrote
for it, but just don't hold your breath.

The Curve class has a method called GetOffsetCurves()
which is where you need to start. However, I would
suggest that you spend some time becoming more
familiar with the API before trying to tackle something
like this, because unlike the few lines of LISP that's
needed to do this, the same in .NET it is not trivial.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5500554@discussion.autodesk.com...
Hi, all.
Could anyone share 'Offset Polyline' example code?
I found the example code written in LISP, but what I need is .net example.

I would be much and much .... appreciated if you do that.
Message 6 of 15
Anonymous
in reply to: Anonymous

Thanks for your reply,Tony.
I already started about 3doffset.

Could you advise me on my code.
No error, but doesn't work as AutoCad do.

I attached file. Plz,test my code.
Message 7 of 15
Anonymous
in reply to: Anonymous

My 3doffset is just like as 2doffset adding z value.
Message 8 of 15
Anonymous
in reply to: Anonymous

Sorry, I can't test your code.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5500951@discussion.autodesk.com...
Thanks for your reply,Tony.
I already started about 3doffset.

Could you advise me on my code.
No error, but doesn't work as AutoCad do.

I attached file. Plz,test my code.
Message 9 of 15
Anonymous
in reply to: Anonymous

I have already write this code that work very well.
I hope that this is that you want.
Ciao
GPaolo


ha scritto nel messaggio news:5500554@discussion.autodesk.com...
Hi, all.
Could anyone share 'Offset Polyline' example code?
I found the example code written in LISP, but what I need is .net example.

I would be much and much .... appreciated if you do that.
Message 10 of 15
Anonymous
in reply to: Anonymous

Thank you, GPaolo.
In your fuction code,HmDotNet is an assembly like DotNetArx I assume.
Where could I get this file?
Message 11 of 15
Anonymous
in reply to: Anonymous

yes is a DLL but the function hminsent is a simplex insert of a entity.
Ciao
GPaolo

ha scritto nel messaggio news:5501069@discussion.autodesk.com...
Thank you, GPaolo.
In your fuction code,HmDotNet is an assembly like DotNetArx I assume.
Where could I get this file?
Message 12 of 15
Anonymous
in reply to: Anonymous

I don't see if the newsgroup see my attach hminsent.txt.
Can you confirm me if you see my last attach?
Thanks
GPaolo


ha scritto nel messaggio news:5501069@discussion.autodesk.com...
Thank you, GPaolo.
In your fuction code,HmDotNet is an assembly like DotNetArx I assume.
Where could I get this file?
Message 13 of 15
Anonymous
in reply to: Anonymous

Wow,great!
Thank you so.... much, Gpaolo.
I repaired my code as your function goes.
And, finally succeeded.
But, one problem remains.
That is how should the program determines the offset direction.
Pline's left,right,up,or down?
Message 14 of 15
Anonymous
in reply to: Anonymous

it does in Mickey Mouse Land! my old math teacher used to say that when we did rediculous stuff in algebra.

Tony Tanzillo
|>No James........
|>
|>The OffsetCurve2D class does not offset a polyline.
James Maeding
Civil Engineer and Programmer
jmaeding - at - hunsaker - dotcom
Message 15 of 15
Anonymous
in reply to: Anonymous

Forget! I solved.
objCol = mCurve.GetOffsetCurves(-Offset) was the clue.
Thank you again, GPaolo.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost