Jump to content
buttonbutton

Object selection

Recommended Posts

buttonbutton

Can anyone please help ..

 

i have a curved 3d polyline that i need to offset autocad lt 2014 wont allow me to do this unless i explode the line, the only issue is that i then have to offset hundreds of individual lines, which i can accept but then i need to select these lines created by the offset to give them a new layer//linetype, etc .. is there any way i can select the items i created on the last operation ie offset . i can do it and it selects the very last line... but am needing it to do for the whole operation .. i hope you understand what i mean ..or am i just going about this the wrong way ??

 

Thanks for reading .

Share this post


Link to post
Share on other sites
ReMark

Too bad you are using LT and not full AutoCAD because I found a custom lisp routine for offsetting a 3D polyline that works.

 

How many 3D polylines do you have to offset?

Share this post


Link to post
Share on other sites
buttonbutton

yeah it kinda blows about lisps not working on lt

i have only about 3100 individual pieces !! .. .. do you know if you can offset in two directions at once .. am basically showing cable that is in ducting so needing parallel lines on both sides .. there's miles and miles of it .. if i could offset in both directions at once it would cut it down by half.. two thirds away threw now but its just in-case i come across this again ...

 

 

thanks for your response

Share this post


Link to post
Share on other sites
ReMark

The problem, in a nutshell, is you are using LT. So that means that most of the solutions you'll come across are going to be lisp based and you can't use them.

 

I was going to offer to offset the line for you but seeing how you are most of the way there I guess it's pointless.

Share this post


Link to post
Share on other sites
buttonbutton

thanks anyway ..

Share this post


Link to post
Share on other sites
steven-g

Would it not be possible to explode the 3dpolyline, flatten the lines, convert to polyline and join the segments, and then offset ? Providing there aren't any arc's (just straight lines) this should be an option for a macro. It's a bit unclear because you mention a curved 3dpolyline and then lines once exploded. Could you post the DWG

Share this post


Link to post
Share on other sites
ReMark

You can PEdit a 3Dpolyline and use the Spline option on it thus creating a curved 3Dpolyline. Upon exploding it however it becomes a series of straight line segments. In a simple test I created a 10 segment 3Dpolyline. Then I applied the Spline curve option. Finally I exploded it. I now had 64 line segments.

Share this post


Link to post
Share on other sites
buttonbutton

flatten is an express tool to the best of my knowledge. the 3d poly became lines after exploded .. once you join them again (without Flatten) they become a 3d poly again ..

 

Thanks anyway

Share this post


Link to post
Share on other sites
steven-g

So long as it doesn't have arc's there is a macro that we use in LT fot flattening objects, it just gives problems with some objects (like arc's)

Share this post


Link to post
Share on other sites
ReMark

I don't believe splines support arcs when exploded only line segments.

Share this post


Link to post
Share on other sites
buttonbutton

C^C_move;_all;;0,0,0;0,0,1e99;_move;_p;;0,0,0;0,0,-1e99;

 

is a macro i found on here but it didn't seem to work..

Share this post


Link to post
Share on other sites
buttonbutton

C^C_move;_all;;0,0,0;0,0,1e99;_move;_p;;0,0,0;0,0,-1e99;

 

this macro was found on here but it doesnt seem to work ..

Share this post


Link to post
Share on other sites
buttonbutton

sorry the macro did work..

Share this post


Link to post
Share on other sites
rkent
Can anyone please help ..

 

i have a curved 3d polyline that i need to offset autocad lt 2014 wont allow me to do this unless i explode the line, the only issue is that i then have to offset hundreds of individual lines, which i can accept but then i need to select these lines created by the offset to give them a new layer//linetype, etc .. is there any way i can select the items i created on the last operation ie offset . i can do it and it selects the very last line... but am needing it to do for the whole operation .. i hope you understand what i mean ..or am i just going about this the wrong way ??

 

Thanks for reading .

 

Could you post at least a portion of the drawing. I am not clear if you have a 3dpline, or a pline in 3D, etc.

Share this post


Link to post
Share on other sites
steven-g

Yeah that's the macro (use with care and only on backup copies of a file). And continuing on from there here is a macro that will lump it all together

^C^C^C-la;n;temp;s;temp;;change;\;p;la;temp;;explode;\;;selectsimilar;l;;move;0,0,0;0,0,1e99;move;p;;0,0,0;0,0,-1e99;pe;m;p;;y;j;j;b;;;o;

For some reason you have to click on the 3Dpoly twice, the first time it refuses to explode it. This macro creates a "temp" layer and places the new pline onto that layer and finishes by starting the offset command. It may or may not work on your actual 3dpoly, but it's a start. (Don't forget to backup your drawing first.

Share this post


Link to post
Share on other sites
RobDraw
i need to select these lines created by the offset to give them a new layer//linetype, etc ..

 

Offset now has a layer option. Make the layer that you want them on current and then assign that option in the offset command.

Share this post


Link to post
Share on other sites
iconeo

Download AutoCAD trial. Run lisp on 3dpolyline. Done. If you only gotta do it once ya know...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×