I have a software that needs to process dxf files and I am having a
nightmare trying to find the absolute corrdinates of LINEs inside
blocks.
This is what I know about BLOCKS:
Each BLOCK (in the BLOCKS section) has a block name that is related to
an INSERT entity (In the ENTITIES section).
The INSERT entity defines the transformation parameters such as origin,
scale and rotation, to transform the BLOCK coordinates from relative to
absolute coordinates.
All coordinates in the BLOCK may be transformed using the parameters
defined in INSERT.
Each BLOCK ends with ENDBLK.
This is what I need to do:
I need to transform the relative coordinates of LINEs inside blocks (in
the BLOCKS section) to absolute coordinates.
What I do is search (using the block name) the corresponding INSERT
entity (in the ENTITIES section) which gives me the coordinates of the
block, so by adding the relative + block corrdinates I can obtain the
absolute coordinates for LINEs.
SO FAR THE EXPLANATION, NOW THE PROBLEM TO SOLVE:
What can I do if I find more than one INSERT entity with the same block
name ?
How do I know which one applies to each LINE, since for a given block
name there is only one BLOCK structure in the blocks SECTION but in
some cases there is more than one INSERT entity in the ENTITIES
section.
Thanks for your help
winthan
transform the relative coordinates of LINEs inside blocks (
Use this forum to ask questions about how to do things in vec2web.
Moderator: andrew
Return to “vec2web 'How Do I' Questions”
Jump to
- General
- ↳ Announcements
- ↳ Chat
- ↳ Site Feedback
- ↳ Pre-sales Questions
- ↳ Introduce Yourself
- QCAD Professional Version
- ↳ QCAD 'How Do I' Questions
- ↳ QCAD Suggestions and Feedback
- ↳ QCAD Voting Corner
- ↳ QCAD Troubleshooting and Problems
- ↳ QCAD Installation and Upgrades
- ↳ QCAD Programming, Script Programming and Contributing
- ↳ QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- ↳ Finished 'Ready to go' Scripts/Plug-in's
- ↳ QCAD Tips and Tutorials
- ↳ QCAD/CAM
- ↳ What do you use QCAD/CAM for?
- QCAD Community Edition
- ↳ QCAD Community Edition
- International Forums
- ↳ Français
- ↳ QCAD Professional
- ↳ QCAD/CAM
- ↳ QCAD Community Edition (Version 3)
- ↳ Deutsch
- ↳ QCAD Professional
- ↳ QCAD/CAM
- ↳ QCAD Community Edition
- ↳ Italiano
- ↳ QCAD Professional
- ↳ QCAD/CAM
- ↳ QCAD Community Edition
- ↳ Español
- ↳ QCAD Professional
- ↳ QCAD/CAM
- ↳ QCAD Community Edition
- ↳ Português
- ↳ QCAD Professional
- ↳ QCAD/CAM
- ↳ QCAD Community Edition
- QCAD Book
- ↳ QCAD - An Introduction to Computer-Aided Design
- ↳ QCAD - Una Introducción al Diseño Asistido por Ordenador
- ↳ QCAD - Eine Einführung in computerunterstütztes Zeichnen (CAD)
- QCAD Part Libraries
- ↳ General
- ↳ Creating DXF/DWG items
- ↳ Creating SVG items
- ↳ Meta Data
- dxflib
- ↳ dxflib Suggestions and Feedback
- ↳ dxflib 'How Do I' Questions
- ↳ dxflib Troubleshooting and Problems
- Archive
- ↳ vec2web Format Converter
- ↳ vec2web Suggestions and Feedback
- ↳ vec2web 'How Do I' Questions
- ↳ vec2web Troubleshooting and Problems
- ↳ QCAD Development
- ↳ Translations
- ↳ QCAD Professional (2.1/2.2)
- ↳ QCAD 2.1/2.2 Suggestions and Feedback
- ↳ QCAD 2.1/2.2 'How Do I' Questions
- ↳ QCAD 2.1/2.2 Troubleshooting and Problems
- ↳ QCAD 2.1/2.2 Installation and Upgrades
- ↳ QCAD 2.1/2.2 Developers
- ↳ QCAD Community Edition (2.0)
- ↳ QCAD Community 'How Do I' Questions
- ↳ QCAD Community Patches
- ↳ CAM Expert
- ↳ Announcement
- ↳ CAM Expert Suggestions and Feedback
- ↳ CAM Expert 'How Do I' Questions
- ↳ CAM Expert Troubleshooting and Problems
- ↳ Annonces
- ↳ Ankündigungen
- ↳ Annunci
- ↳ Noticias