Community
InfraWorks Forum
Welcome to Autodesk’s InfraWorks Forums. Share your knowledge, ask questions, and explore popular InfraWorks topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Rotate all objects using data source

8 ANTWORTEN 8
GELÖST
Antworten
Nachricht 1 von 9
Karadzhaian_Eduard
913 Aufrufe, 8 Antworten

Rotate all objects using data source

Hi all,

I want to add design lightpoles to my Infraworks model.

As an existing source data i use AutoCAD blocks, either of them have an individual rotation angle. 

I try to import this data using GIS format (.sdf) - data completely have been added to Infraworks with standart rotation angle for all objects.

Next I want to automatically rotate all data objects using script:

Eduard_Karadzhaian_0-1592692779342.png

But it doesn't work.

I'll be glad to get any advices ASAP.

Thanks in advance


Eduard Karadzhaian
Senior Civil Infrastructure Engineer
Blog| LinkedIn| E-mail| Youtube|



8 ANTWORTEN 8
Nachricht 2 von 9

@Karadzhaian_Eduard 

If your SDF has a a rotation attribute on it, you can map that to the 'rotate z' field in the table view at import. No script required.

AEC Collection / Safe FME / ESRI ArcGIS / Unreal Engine
Digital Engineering Lead, Compulsive Problem Solver.
Nachricht 3 von 9

@andrewofabley could you please confirm this information using screenshot?

In 'rotate z' field it is impossible to input rotation attribute name or choose it from list. There is a possiblity to input only absolute values. Essentialy I have rotation attribute in my .sdf file.

 
 

Screenshot.PNG


Eduard Karadzhaian
Senior Civil Infrastructure Engineer
Blog| LinkedIn| E-mail| Youtube|



Nachricht 4 von 9

Another situation with "Set elevation" value. Here there is a possibility to adjust any attributes values.

 Screenshot_2.PNG


Eduard Karadzhaian
Senior Civil Infrastructure Engineer
Blog| LinkedIn| E-mail| Youtube|



Nachricht 5 von 9

My problem solved.

Really script was so easy:

function Process(SOURCE, CITY_FURNITURE) {

CITY_FURNITURE.MODEL_ROTATE_Z = SOURCE["ATTRIBUTE_NAME"]*180/3.14;


return true;
}


Eduard Karadzhaian
Senior Civil Infrastructure Engineer
Blog| LinkedIn| E-mail| Youtube|



Nachricht 6 von 9

Hi @Karadzhaian_Eduard ,

 

just for answering the open question about where to define the rotation - if you have an attribiute in the SDF/SHP files for rotation, you can select it in the table tab:

 

    test_points.png

 

Regards,

Karsten.



Karsten Saenger
Nachricht 7 von 9

How to export object in Civil 3D with attributes, I use command MAPEXPORT but it no attributes, please help!

Nachricht 8 von 9
mark.reeveTXANL
als Antwort auf: inception2708

I try the above method and am still not getting the same rotation as in CAD. I have an SDF with extracted rotation values, I map that attribute (and convert from radians) but it is still a different rotation to the CAD. The value is the same but the angle is different.

Nachricht 9 von 9
namlt33
als Antwort auf: inception2708

Go to data tab, select "select attributes" chose the properties you want 

namlt33_0-1735645127852.png

 

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Rail Community


 

Autodesk Design & Make Report