TheSwamp

Code Red => ARX Programming => Topic started by: jtm2020hyo on December 28, 2020, 03:22:32 PM

Title: How can I start at ACA OMF?
Post by: jtm2020hyo on December 28, 2020, 03:22:32 PM
I wish to start using OMF but I did not receive an answer since AND Autodesk.

how can I start without Autodesk's help?
Title: Re: How can I start at ACA OMF?
Post by: MickD on December 28, 2020, 09:35:00 PM
a quick web search found this -> https://www.autodesk.com/autodesk-university/class/OMF-API-Power-Customize-AutoCAD-Architecture-and-AutoCAD-MEP-2016

Plenty more in the rest of the search results: https://www.google.com/search?rlz=1C1CHBF_en-GBAU929AU929&sxsrf=ALeKk01QHUaBKOg782GJMupZz8krkRAWkA%3A1609209171464&ei=U5XqX8XpG7eX4-EP54Cx2AI&q=OMF+cad&oq=OMF+cad&gs_lcp=CgZwc3ktYWIQDDILCAAQyQMQFhAKEB4yBggAEBYQHjoECAAQRzoHCAAQyQMQQzoTCC4QsQMQgwEQxwEQowIQFBCHAjoECAAQQzoKCC4QxwEQrwEQQzoHCAAQFBCHAjoICC4QxwEQrwE6EQguEMcBEK8BEMkDEJECEJMCOgIIADoNCC4QxwEQrwEQFBCHAjoECAAQClD8NljkQmC3UWgAcAJ4AIAB9AKIAbwHkgEHMC4yLjEuMZgBAKABAaoBB2d3cy13aXrIAQjAAQE&sclient=psy-ab&ved=0ahUKEwiF36Kok_LtAhW3yzgGHWdADCsQ4dUDCA0

That should at least give you a start, hope it helps.
Title: Re: How can I start at ACA OMF?
Post by: jtm2020hyo on December 28, 2020, 09:40:54 PM
I was watching the entire day such video, and according to the link I need find the ACA OMF Wizard 2021, something similar to AutoCAD ObjectARX Wizard 2021, according to the same video I need to join AND Autodesk using an ADN Standard or ADN Professional account, then what I need do? I did not receive answers by Autodesk.

then what alternatives do I have?
Title: Re: How can I start at ACA OMF?
Post by: MickD on December 29, 2020, 04:26:39 PM
I'm pretty sure once you join the ADN you have access to all resources and tools they offer and even some phone/email support (maybe depending on what tier you buy in to from memory).

If you a capable of building dll's from scratch with C++ you should be able to build a plugin without the wizard. To make it easier you could probably start with the ARX wizard and find out what settings need to be changed but I imagine it would be very few, like instead of producing .arx it may just be .dll or other naming convention, in the end it's just a dll, the file extension is really just a 'filter' to ensure you are loading a plugin and not an ordinary dll.
The wizard just helps with a lot of boiler plate coding and initial classes etc that could be copied from an existing project and refactored to suit. Yes, it may be a bit of work the first time around and I guess it depends on what your time is worth compared to the ADN subscription and what it provides to get you going quickly.

hth, cheers.
Title: Re: How can I start at ACA OMF?
Post by: jtm2020hyo on December 29, 2020, 05:40:49 PM
thanks for the answer, I am new for now I just wish to test and play with the objects.

is there any method, for example, to extract all code necessary of Wall-Object and then edit it to one Wall-Custom-Object?

maybe is there a video or sample for extract info or code inside AutoCAD Architecture / MEP?
Title: Re: How can I start at ACA OMF?
Post by: MickD on December 29, 2020, 07:50:17 PM
thanks for the answer, I am new for now I just wish to test and play with the objects.

is there any method, for example, to extract all code necessary of Wall-Object and then edit it to one Wall-Custom-Object?

maybe is there a video or sample for extract info or code inside AutoCAD Architecture / MEP?

Sorry but I have no experience with any of the verticals but if Wall-Object is a Class then you can 'inherit' from that class to give you everything in Wall-Object and then add your custom properties/methods to the new sub-class.
The other way is to make your own custom class which has the Wall-Object as a private property object that you can use as you wish, just be aware that you will then need to call each method of the Wall-Object as you need it whereas using inheritance gives you those calls out of the box.
Title: Re: How can I start at ACA OMF?
Post by: jtm2020hyo on December 30, 2020, 02:24:45 AM
Thanks a lot, could share any sample in AutoCAD Vanilla to create, for example, a custom line object?

Something like a post in any forum or video in youtube, or if possible the code for study or something simple and public.
Title: Re: How can I start at ACA OMF?
Post by: MickD on December 30, 2020, 06:22:40 PM
If you look through this forum section there are a few tutorials written about custom objects by members here (including myself some time back..) but I would suggest downloading the SDK for Vanilla AutoCAD and looking through the example in there. It's pretty simple from memory and with the info from this board and other sources you should be able to get something working with a bit of patience.

I've only written a few custom objects for learning and when absolutely necessary, as good as they seem to be they do come with some baggage like having to make object enablers etc. If I have a choice I use .Net with XData/XRecords for extra data or functionality purposes and standard built in features. With a bit of planning this can get you a long way and doesn't interfere with anyone's system if they open a drawing with your pseudo-custom objects.

Good luck! :)