Create entity temporary

Create entity temporary

dhanraj.dhokale
Contributor Contributor
662 Views
4 Replies
Message 1 of 5

Create entity temporary

dhanraj.dhokale
Contributor
Contributor

Hello,

 

I have created Pallet in Revit like project browser in that there is list control, this list control has list of entities.

My requirement is when user clicks in entity then only entity should get created temporary.

Main requirement these entities are just for reference or marking, I want to avoid them to be in database , how can I manage them considering work sharing , central model should not affect and entity should be visible only when clicked or only in local model.

I tried DirectContext3D with this I can create entities but there are display issues like I want my entity always visible over top, in case of 2D views with room/ Area my entities are not visible. With DirectContext 3D I can not set any overrides so I have do many computation (plane on which I want to draw) to bring entity on top and which does not works in all cases different views \3D.

Also DirectContext 3D does not work in sheets. My entities are planar entities..

I don't want that if current users saves model then other users with work sharing start seeing this entities in there model.. Is there something event that I can mark these entities should not be synched to central model \server.

Is there anything in SKD or workaround by which I can manage this??

 

Thanks & Regards.

Dhanraj D

0 Likes
663 Views
4 Replies
Replies (4)
Message 2 of 5

jeremy_tammik
Alumni
Alumni

No.

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 5

dhanraj.dhokale
Contributor
Contributor

ok Is there any way with DirectContext3D that I can draw entity over top, can I set overrides ? , I think Room\Area when shown in color has priority so my entities go behind is there something I can set during DirectContext3D?

0 Likes
Message 4 of 5

jeremy_tammik
Alumni
Alumni

I believe you can use DirectContext3D to draw on top of all other geometry. Overrides is a concept that only applies to BIM elements, afaik, so it is not applicable to DirectContext3D visualisations.

    

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 5 of 5

jeremy_tammik
Alumni
Alumni

Maybe the answer by Gemini will also help; it seems to describe a different approach:

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes