Logging or getting xy coordinates from the dgn file

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
kinoy
Junior Member
Posts: 11
Joined: Mon Mar 20, 2017 11:21 am

Logging or getting xy coordinates from the dgn file

Post by kinoy » Wed Apr 05, 2017 2:10 pm

I am writing ecmascript to export the dgn file to svg file and it is exporting correctly. I would also want to get the xy coordinates of the starting point of the file image to be logged. Is there any method to extract the information from the dgn file. I have attached the image. I do want to get the xy coordinates from the arrow pointing to red cross through ecma script.
Attachments
xycoordinates.jpg
xycoordinates.jpg (92.32 KiB) Viewed 3324 times

User avatar
andrew
Site Admin
Posts: 9063
Joined: Fri Mar 30, 2007 6:07 am

Re: Logging or getting xy coordinates from the dgn file

Post by andrew » Thu Apr 06, 2017 7:23 am

It looks to me like that position would by definition always be 0/0. Please provide more information on what defines this point if that is not the case.

kinoy
Junior Member
Posts: 11
Joined: Mon Mar 20, 2017 11:21 am

Re: Logging or getting xy coordinates from the dgn file

Post by kinoy » Thu Apr 06, 2017 10:58 am

Hi Thanks for the reply. Is there any way through ecmascript we could find the coordinates or the infoposition and infopositionrel of the loaded object.

Post Reply

Return to “QCAD 'How Do I' Questions”