Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Need help with acad_table dxf coding

Anonymous

Need help with acad_table dxf coding

Anonymous
No aplicable

Hi all,

I am fairly new to the Autocad world and i am currently working on developing a libary that takes data from MatLab and generates simple DXF files that can be read into Autocad. Luckily, there was already some open source coding for generation of polylines and text. However, i have been trying to generate my own table from scratch in dxf, but without any luck.

So i was hoping one of you guys could help me and tell me what i am doing wrong (or maybe you have an example or guide i could follow):I have attached the code i have written.

Also, does anyone have any good suggestions/ideas of how you can debug a piece of dxf code?

 

 

0 Me gusta
Responder
695 Vistas
7 Respuestas
Respuestas (7)

Anonymous
No aplicable

No one has any experience with autocad DXF coding..?

Maybe  someone knows where i could get some help then :)? I feel like i have been searching google dry.

0 Me gusta

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> No one has any experience with autocad DXF coding..?

The group here is to get support for AutoCAD functionality. If anyone with AutoCAD needs a DXF he/she draws the objects with AutoCAD and then do a DXFOUT, there is no need to know the DXF syntax.

 

What I would do if I need a specific object and see which DXFCode is needed for some special objects and situations I would too create that object (with some special properties) in AutoCAD, save it as DXF and compare the DXF's.

 

Good luck, - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2025
------------------------------------------------------------------------------------

(not an Autodesk consultant)

Anonymous
No aplicable

Hi Alfred,

My impression was that DXF language is developed by Autocad and then a part of it, hence i didn't think it would be out of place ot ask the question here (seeing as there is litterally no other forum dealing with the topic).

However, thank you for you answer, that is also what i've been trying to do, unfortunately when you do a DXF out and open it in a text editor the "code" is 10k lines+ and it is very difficult to decode and break down to the actual small piece you need and want. At least i haven't managed to do it correctly with a simple 3x2 table.

 

Anyways, thank you for you answer :cara_con_una_leve_sonrisa:

0 Me gusta

Anonymous
No aplicable

Hi Martti,

Thanks for the reply.

Yes and it is that exact page i have used when writing my dxf code for a table. However it is not possible to debug (at least i have not found a way) a piece of DXF code. So i was hoping either someone had tried to do what i am doing or maybe someone had a piece of advice of what i could try and do. Other than doing the DXFOUT option.

 

/Sam

0 Me gusta

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> hence i didn't think it would be out of place ot ask the question here

Sorry if my wording was not correct, it is always ok to place questions here (well, AutoCAD based :cara_guiñando_un_ojo: ), I just wanted to give you a feedback why not too many answers arrived here :cara_guiñando_un_ojo:

 

>> unfortunately when you do a DXF out and open it in a text editor the "code" is 10k lines+ and it is

>> very difficult to decode and break down to the actual small piece

Well, searching for SECTION ENTITIES and having only one object in the drawing makes it more easy, but yes, it's a tricky part (especially to find also the styles for the table, for the text objects, ...)

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2025
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Me gusta

martti.halminen
Collaborator
Collaborator

 

Generally, a better place for programming -related questions would be the Customization forum, http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130

 

But anyway, there is a little demographic problem: most of the people in these forums are running native AutoCAD, so they have no need to build their own DXF stuff. You'd likely find more people with dxf debugging experience from the people building non-Autodesk CAD systems...

 

The best book about DXF I've seen (but I've not done any stuff with dxf myself, and haven't searched widely) is

 http://www.amazon.com/Mastering-Autocad-Objects-Dietmar-Rudolph/dp/078212562X

 

- the problem with that is that it is old, so it doesn't know about acad_table

 

-- 

 

0 Me gusta