Looking for an Example of accessing 2011 AutoCad FX Table.

Looking for an Example of accessing 2011 AutoCad FX Table.

Anonymous
Not applicable
811 Views
9 Replies
Message 1 of 10

Looking for an Example of accessing 2011 AutoCad FX Table.

Anonymous
Not applicable

I am looking for an Example of accessing 2011 AutoCad FX Table.

 

I would like to programmically read and write dimensional and user parameters.

 

Any Help?

0 Likes
812 Views
9 Replies
Replies (9)
Message 2 of 10

StephenPreston
Alumni
Alumni

Hopefully you're ok with using .NET to do this (The API is .NET and ObjectARX only). If so, my AU 2010 "Creating Geometric and Dimensional Constraints Using the AutoCAD® .NET API" class should help you. There's a recording, samples and handout posted to http://through-the-interface.typepad.com/through_the_interface/2010/12/some-content-from-au-2010.htm... if you don't have access to AU Online. One of the samples includes an example of accessing user parameters.

 

 

Cheers,

Stephen Preston
Autodesk Developer Network
0 Likes
Message 3 of 10

Anonymous
Not applicable

Stephen,

 

Thank you for the reply,

 

I've looked over your samples and struggled to understand your class video.  Admittedly much is lost on me and I've been programming applications in VB.NET for a couple of years. over 10 years with VB6 an VBA.

 

All of this is moot however as I cannot get a single VB.NET app to work with AutoCad whether as a Dll through netload or as straight automation from a standard VB.NET program.

 

Honestly I think setting up the references are my main issue.  I've tried to use the Autodesk.AutoCad.Interop and Autodesk.AutoCad.Interop.Common from Windows Assembly GAC.  set up my import statements.

...

Dim oApp as new acadapplication  <--- Crash every time.

...

Possibly my problem is I have both 2011 and 2012 loaded. on my Windows 7 32 bit PC. 

 

Never had this issue with automating other products

 

0 Likes
Message 4 of 10

StephenPreston
Alumni
Alumni

Having 2011 and 2012 installed shouldn't be a problem. I have those installed too (and until recently also 2010 and 2009 on the same machine).

 

In terms of getting a VB.NET plug-in up and running, it should be fairly straightforward if you follow the cookbook. Have you found the resources on www.autodesk.com/developautocad. The AutoCAD .NET training labs and accompanying videos should get you up and running. Let me know if that doesn't help.

 

 

 

Cheers,

Stephen Preston
Autodesk Developer Network
0 Likes
Message 5 of 10

Anonymous
Not applicable

Unfortunately I am even more lost than before.  As stated above I am trying to write for AutoCad 2011.

 

I downloaded the video:

 

DevTV: Introduction to AutoCAD .NET Programming

and

AutoCAD 2010-2012 dotNet Wizards.zip (zip - 6866Kb)

 

from  http://usa.autodesk.com/adsk/servlet/index?id=1911627&siteID=123112#section2

 

The template created by the wizard looks nothing like the video VS new Project Templates lists "Acad AddIn."

Not

"AutoCad Managed VB Project Application"

 

Where do I get the latter template wizard?

 

 

0 Likes
Message 6 of 10

StephenPreston
Alumni
Alumni

We updated the Wizard recently, so the training labs probably refer to an older version. There is a short video included with the download for the new Wizard that explains how to install it.

 

Also, if you're still struggling, I'd like to help you get up and running. I need your contact details for that. Don't post personal info here -  Please see the private mail I sent you via the forum mail system.

 

 

Cheers,

Stephen Preston
Autodesk Developer Network
0 Likes
Message 7 of 10

Anonymous
Not applicable

Sorry about the whining.

 

I ended up creating my own VB Template by watching the video on creating a C# project from scratch.

 

Everything appears to be working one to one with the tutorial now.

 

Figured out how to load the dll with netload from a Lisp script in the startup suite.

Tied the macro: ^C^C_helloworld to a button.

Works fine.

 

Moving on.  I'll finish the tutorial then get back here if I run up against anything else.

 

Thank You,

 

0 Likes
Message 8 of 10

StephenPreston
Alumni
Alumni

Excellent. Glad you're up and running. Like everything in life - its simple once you know how :-).

 

Happy coding!

Cheers,

Stephen Preston
Autodesk Developer Network
0 Likes
Message 9 of 10

Anonymous
Not applicable

Hi Stephen,

 

Back again,

 

I am looking for a way to retreve parametric parameter group information.

I found the Group Section of the database but it appears empty.

 

Is this the correct place in the DB to locate the parameters's group names or are parameter group names a property on each parameter?

 

In either case I can use some help getting started with the code.

 

Thank you,

 

 

0 Likes
Message 10 of 10

Anonymous
Not applicable

Still Hoping to hear back from you...

0 Likes