Revit API code

Revit API code

tuanlongwf
Observer Observer
256 Views
5 Replies
Message 1 of 6

Revit API code

tuanlongwf
Observer
Observer

Hi, I create a project in visual studio code with revitapi, my client request that when I start/debug the project, Revit start and in Revit, I export to DWG for cad, the dimension's layers and names in cad must be the same in revit but I try everything yet cad doesn't read it, the layer table doesn't contain 4 dims that exist in revit, I need help about this, here is my code:

 

0 Likes
257 Views
5 Replies
Replies (5)
Message 2 of 6

Mohamed_Arshad
Advisor
Advisor

Hi @tuanlongwf 

 

Do you want to export the DWG with CAD Layer details from Revit API Code ? Is my understanding was correct ?


Mohamed Arshad K
Software Developer (CAD & BIM)

0 Likes
Message 3 of 6

essam-salah
Collaborator
Collaborator

@Mohamed_Arshad wrote:

Hi @tuanlongwf 

Do you want to export the DWG with CAD Layer details from Revit API Code ?


I think yes, do you have any experience with exporting from RVT to ACAD with keeping the layers? 

0 Likes
Message 4 of 6

tuanlongwf
Observer
Observer

I want to export the name of all dimensions to cad layer's table but no matter I try, it's still doesn't work. Their name still appear in dim style but in layer's table, their name replaced by default name from cad 

 

0 Likes
Message 5 of 6

ctm_mka
Collaborator
Collaborator

looking at your images, it looks like you are modifying the export setup, have you manually verified that those changes are applied after your programs completes?

0 Likes
Message 6 of 6

tuanlongwf
Observer
Observer

yes, it transfer information of dims to dim style is success but the layer table doesn't change automatically, I have to change it manually

0 Likes