Autodesk ObjectARX
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Re: how to change the value of user variable of autocad201 0
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Ok. I've tested my code from post 4 and it do it the same you ask me.
1. Compile and build arx-file with code I've posted.
2. Start AutoCAD and load arx-file into AutoCAD.
3. Starting command ADDASSOCVAR and you see how line changed.
Command: ADDASSOCVAR Variable name: user1 Variable expression: 100
So before command:
And after command:
Re: how to change the value of user variable of autocad201 0
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thank you very much! It's very kind of you.you are my mentor.
Regards
Re: how to change the value of user variable of autocad201 0
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello,experts
I have a new question,I want to know how to use the Dynamic Blocks in objectarx2010. I define a Dynamic Block in autocad2010,Now I want to insert the Dynamic Block in a dwg-file,can you tell me the code?Thank you very much!
this is a screenshot of the Dynamic Blocks,I want to insert the Dynamic Block in the position(x=50,y=50),and I want change the three dimensions:
before command:they are d1=48;d2=96;d3=43
after command:they are d1=98;d2=150;d3=70
I think the class of AcDbDynBlockReference is useful,but I don't know how to use it.Can you help me?
Re: how to change the value of user variable of autocad201 0
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello,experts
I have a new question,I want to know how to use the Dynamic Blocks in objectarx2010. I define a Dynamic Block in autocad2010,Now I want to insert the Dynamic Block in a dwg-file,can you tell me the code,Thank you very much!
this is a screenshot of the Dynamic Blocks,I want to insert the Dynamic Block in the coordinate position(x=50,y=50),and I want change the three dimensions:
before command:they are d1=48;d2=96;d3=43
after command:they are d1=98;d2=150;d3=70
And I have attached this dwg-file in my post in order to you can test your code with it(I have
defined the the Dynamic Block,its name is a;you can try to insert it in autocad2010).
I think the class of AcDbDynBlockReference is useful,but I don't know how to use it.Can you help me?






