AutoCAD Architecture Customization

New Member
Posts: 1
Registered: ‎06-23-2009
Message 1 of 2 (311 Views)

Problems anchoring a door to a wall with Autocad Architecture 2010

311 Views, 1 Replies
06-23-2009 04:16 AM
Dear Users,
I am trying to anchor a door to a wall and i want to relocate the door with Autodesk Architecture 2010 in combination with doing measurements by a tachymeter.
I am new to VBA and created a code to build up walls and doors using the measurement data from my tachymeter. My Problem is now to create the anchor to a wall and relocating a door. To solve my Problems i searched the Discussion Group and found a code in this Thread at the 4th comment:

But it actually doesnt work in Autocad Architecture 2010. I know it is performing well in combination with Autocad Architecture 2004. But cant find a way to perform it in Autodesk Architecture 2009 or 2010.
First of all, yes i tried the right library from Auocad Architecture 2004 in 2009 and 2010, but it stopped.

Hopefully someone can help me with this tiny problem. I think the problem can be solved very easy, but i simply dont get it :/
Thank you,
Active Member
Posts: 8
Registered: ‎05-28-2002
Message 2 of 2 (311 Views)

Re: Problems anchoring a door to a wall with Autocad Architecture 2010

07-06-2009 03:11 AM in reply to: xael0n
If you post your code example it is easier to solve.

Doors should automatically anchor unless you have release the anchors or placed without an anchor.
You will need to select your wall and door instead of creating as in Robs code. Then create an anchor pasing the wall to this and then door.attachanchor and pass the anchor.

Dim anchor As AecAnchorOpeningBaseToWall
anchor.Reference = wall
anchor.XDistance = Distance

anchor.FlipX = True
door.AttachAnchor anchor

For moving the door use Anchor.xdistance = anchor.xdistance + "How far you wont to move it"


You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community