Author Topic: 3Doffset and 3Dpoly joint ??  (Read 6146 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
3Doffset and 3Dpoly joint ??
« on: November 02, 2005, 09:25:46 AM »
does anyone know if thers is any command to....

1) Joint 3Dpoly with line polyline or 3Dpoly ?

2) Offset with 3d point ??

thanks.
Keep smile...

Swift

  • Swamp Rat
  • Posts: 596
Re: 3Doffset and 3Dpoly joint ??
« Reply #1 on: November 02, 2005, 07:53:27 PM »
1. Not by default but can be written

2. that is a tricky question, yes, it is possible, yes, in a way it is easy but in another it is extremely difficult. It has to do with the fact that each segment of a 3d polyline has the ability to fall in a different plane. Think of a lwpoly it always has the same elevation thoughout its length so the segments are offset only in the x-yplane and the same z is maintained in the offset entity. To offset a unconstrained 3dpolyline (any 3dpolyline that I can draw) would be a feat of linear algebra and may or not be possible, depending on what you are wanting to do. HOWEVER, if all you want to do is move the 3dpolyline in the x-y plane and maintain the same z for each vertex then that is fairly easy.

 I need more information.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: 3Doffset and 3Dpoly joint ??
« Reply #2 on: November 03, 2005, 08:53:32 AM »
oh... :?

Ok....so let'S write a little routine...

I have compared both...LWPOLYLINE and POLYLINE
there is the result..

PLINE
((-1 . <Nom d'entité: 7ef5bfa8>) (0 . "LWPOLYLINE") (330 .
<Nom d'entité: 7ef5bcf8>) (5 . "F5") (100 . "AcDbEntity") (67 . 0) (410 .
"Model") (8 . "0") (100 . "AcDbPolyline") (90 . 4) (70 . 0) (43 . 0.0) (38 .
0.0) (39 . 0.0) (10 129.383 122.43) (40 . 0.0) (41 . 0.0) (42 . 0.0) (10
295.489 185.299) (40 . 0.0) (41 . 0.0) (42 . 0.0) (10 368.576 129.957) (40 .
0.0) (41 . 0.0) (42 . 0.0) (10 421.73 188.398) (40 . 0.0) (41 . 0.0) (42 . 0.0)
(210 0.0 0.0 1.0))

3DPOLY
Choix de l'objet: ((-1 . <Nom d'entité: 7ef5bfb0>) (0 . "POLYLINE") (330 . <Nom
d'entité: 7ef5bcf8>) (5 . "F6") (100 . "AcDbEntity") (67 . 0) (410 . "Model")
(8 . "0") (100 . "AcDb3dPolyline") (66 . 1) (10 0.0 0.0 0.0) (70 . 8) (40 .
0.0) (41 . 0.0) (210 0.0 0.0 1.0) (71 . 0) (72 . 0) (73 . 0) (74 . 0) (75 . 0))


Now with the 3DPOLY I can not see all the endpoints of each segment...
how can I get it ?

I would like to do this..
1) select the entity
2) filter if it'S a POLYLINE or LWPOLYLINE or LINE
2) Get all the end points and put in a list
3) delete the selected entity
4) and remake it with LWPOLYLINE with all the points in the created list.

this is the way it seem would like to do.
But if you have better idea...or better suggestion...i'll take it. ^-^
Keep smile...

Bob Wahr

  • Guest
Re: 3Doffset and 3Dpoly joint ??
« Reply #3 on: November 03, 2005, 11:22:27 AM »
Now with the 3DPOLY I can not see all the endpoints of each segment...
how can I get it ?
they are exposed in VBA although I know you don't care, I would assume to lisp as well.

4) and remake it with LWPOLYLINE with all the points in the created list.
If that's what you want, assuming you don't have a lot of them, this will be a lot less headache and will get it done:

EXPLODE
<pick a 3dpolyline>
-CHANGE
P

E
0

PEDIT
L
J
P
<select other lines, polylines, lwpolylines as desired>

and you have done it.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: 3Doffset and 3Dpoly joint ??
« Reply #4 on: November 03, 2005, 11:25:54 AM »
Ok Bob..

good suggestion....but do you think this is the only way ? :?
Keep smile...

Bob Wahr

  • Guest
Re: 3Doffset and 3Dpoly joint ??
« Reply #5 on: November 03, 2005, 11:31:55 AM »
No, not the only way.  Like I said, if you have a lot of them, it might be worth writing a program.  if not, it's a pretty big hassle.  Have to figure out which way each thing is running, compare coordinates, figure out what if any fuzz factor you want to apply.  Definitely not a 30 minute program.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: 3Doffset and 3Dpoly joint ??
« Reply #6 on: November 03, 2005, 01:28:46 PM »
Ok thanks...

Last question....:

What exactly the difference between 3DPOLY and simple PLINE (excluding the width) ?
Keep smile...

Bob Wahr

  • Guest
Re: 3Doffset and 3Dpoly joint ??
« Reply #7 on: November 03, 2005, 01:39:38 PM »
THE SHORTEST MOST BASIC ANSWER (sry) is that polylines (light or heavy) have a consistant Z relative to the plane they are in or to put it another way, they are flat.  3dpolylines can have a different relative Z at each vertex.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: 3Doffset and 3Dpoly joint ??
« Reply #8 on: November 03, 2005, 02:13:51 PM »
Just to add what Bob said, I believe they are also ucs agnostic even tho they have a 210 group.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Andrea

  • Water Moccasin
  • Posts: 2372
Re: 3Doffset and 3Dpoly joint ??
« Reply #9 on: November 03, 2005, 06:01:10 PM »
 :ugly:
Keep smile...

Bob Wahr

  • Guest
Re: 3Doffset and 3Dpoly joint ??
« Reply #10 on: November 03, 2005, 06:02:30 PM »
Are you making fun of the fact that my left eye is smaller than my right?  See if I ever try to help you again.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: 3Doffset and 3Dpoly joint ??
« Reply #11 on: November 03, 2005, 06:04:51 PM »
Alfred, is that you?
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Bob Wahr

  • Guest
Re: 3Doffset and 3Dpoly joint ??
« Reply #12 on: November 03, 2005, 06:05:32 PM »
I'm Melvin the Mop Boy.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: 3Doffset and 3Dpoly joint ??
« Reply #13 on: November 03, 2005, 06:08:57 PM »
It's time to test the water.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

LE

  • Guest
Re: 3Doffset and 3Dpoly joint ??
« Reply #14 on: November 03, 2005, 06:20:57 PM »
Is there a drawing that I can run some tests?.....

Also:
There are plenty of information about geometry out there in hyper-space, look into patterns, sequences, paths, algorithms... all about analytic geometry, graphics, etc..... why are you trying to use or focus on what AutoCAD has built-in?

There are forms to follow a pattern or path.... but is not simple or easy to do.