Convert entity Arc Revit into entity Arc Autocad

Convert entity Arc Revit into entity Arc Autocad

sizy458
Advocate Advocate
592 Views
1 Reply
Message 1 of 2

Convert entity Arc Revit into entity Arc Autocad

sizy458
Advocate
Advocate

How convert information extracted from "Autodesk.Revit.DB.Arc" Revit Application  for reproduce Arc on entity Arc Autocad  ?

I will passe data converted into constructor entity Arc Autocad .

The arc is wrong and different from arc revit

 

How do i do ?

 

 

Autocad.Net

 

Arc a = new Arc(pacadcen, vctcirc, cgh.Radius, cgh.AngleFrom, cgh.AngleTo);
var doc = AcAp.DocumentManager.MdiActiveDocument;
var db = doc.Database;
Autodesk.AutoCAD.DatabaseServices.TransactionManager tm = db.TransactionManager;
BlockTable bt = (BlockTable)tm.GetObject(db.BlockTableId, OpenMode.ForRead, false);
BlockTableRecord btr = (BlockTableRecord)tm.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite, false);
btr.AppendEntity(a);
tm.AddNewlyCreatedDBObject(a, true);

 

I'am since 1 day.

 

Thank.

0 Likes
593 Views
1 Reply
Reply (1)
Message 2 of 2

Virupaksha_aithal
Autodesk Support
Autodesk Support

Hi,

 

what is going wrong? Can you please provide deatils about what you are expecting and the ARC created by AutoCAD API.

 

also, You need to use .NET forum to log AutoCAD.net API related issues https://forums.autodesk.com/t5/net/bd-p/152 



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

0 Likes