Unjoin Lines

Unjoin Lines

sankar_g
Enthusiast Enthusiast
15,453 Views
13 Replies
Message 1 of 14

Unjoin Lines

sankar_g
Enthusiast
Enthusiast

Hi,

 

 

    In revit API, Is there any method to unjoin the lines(Model or detail lines) same as DisallowWallJoinAtEnd() method or any other.

 

Thanks

sangsen

0 Likes
15,454 Views
13 Replies
Replies (13)
Message 2 of 14

jeremytammik
Autodesk
Autodesk

Dear Sangsen,

 

No, I am not aware of any such possibility.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 14

bxw
Enthusiast
Enthusiast

For model lines, I believe if you change one of the lines to a different workset it will cause it to be Unjoined.  Then you  could move it back to the original workset.  

0 Likes
Message 4 of 14

Ning_Zhou
Advocate
Advocate

lines can be joined? did i miss something simple? i assume lines are elements not geometry.

0 Likes
Message 5 of 14

sankar_g
Enthusiast
Enthusiast

Hi,

 

     Please find the attached images. When I trying to move one rect line it also affects the other rect lines. I want to stop this behaviour for the rect lines only. Can any one suggest me the solution or workaround to acheive this.

 

Thanks

sangsen

0 Likes
Message 6 of 14

Ning_Zhou
Advocate
Advocate
ic, 2nd to Jeremy, looks like different workset won't solve it or i missed something?
0 Likes
Message 7 of 14

jeremytammik
Autodesk
Autodesk

Dear Bxw,

 

Can you demonstrate this in detail, preferrably in code?

 

Thank you!

 

Cheers, Jeremy.



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 8 of 14

ana_claudia_nilsson
Community Visitor
Community Visitor

I don't know if revit has the command "Explode", have you tried?

0 Likes
Message 9 of 14

Anonymous
Not applicable

That is exactly the function to use.  Hotkey is X

0 Likes
Message 10 of 14

aignatovich
Advisor
Advisor

Hi all!

 

I've tried to do it several years ago without success, and nowadays it looks, that there is also unavailable neither from UI or API.

@sankar_g, please add this to Revit Ideas, may be there will be enough votes ;-). In addendum it will be good, to say to Revit do not automatically join lines on creation via API

 

@Ning_Zhou, yes, lines can be joined:

joined lines.PNG

Message 11 of 14

Mustafa.Salaheldin
Collaborator
Collaborator

Actually there is a work around.

 

  1. First select all the joined lines that you want to move then convert them in 2D plan into Detail Lines.

     

    convert lines.PNG
  2. Move these lines wherever you want.
  3. Convert them back to Model line.
  4. Enjoy

 

If this reply satisfies your need please mark it as an answer. If you struggle with the code just ping me and I can help.

 


¯\_(ツ)_/¯
Let it work like a charm.

Mustafa Salaheldin


EESignature




Digital Integration Manager, DuPod

Facebook | Twitter | LinkedIn

Message 12 of 14

aignatovich
Advisor
Advisor

It doesn't work, at least in Revit 2018.2. After converting them back they will join again.

The workaround can be moving, shorten or lengthen lines to make a gap between lines, but in this case you don't need to convert them to detail lines, just call SetGeometryCurve with overrideJoins set to true

0 Likes
Message 13 of 14

Ning_Zhou
Advocate
Advocate

that's typical case of Revit being "over-smart"! default should be always "dumb" instead of "smart", do wish factory can have global settings and let user decide if need auto-join whether it's wall/floor/roof or simple line, or at least exposed in API

Message 14 of 14

Anonymous
Not applicable

Why doesn't Revit incorporate options for user wishes like this which makes complete sense.  Others include using shift key for both adding and deselecting versus control and shift, and cut and paste pdf and autocad integration?  These suggestions has been asked many versions ago

0 Likes