Jump to content

Recommended Posts

Posted

Hi all, I'm new to this form here so I would like to say hi and introduce myself. My name is Dustin and I currently work as a detailer for a civil engineering company. During my down time at work I like to make blocks and simple commands to help streamline my job. The problem I'm dealing with right now is whether or not it is possible to manipulate individual grips at a macro level. What I wish to do is create a command that will insert a dynamic block--which contains two polar stretch points--and then click both locations for the points. If anyone can understand this and knows what I'm talking about, please let me know if it can be done. Thanks.

  • 2 weeks later...
Posted
Hi all, I'm new to this form here so I would like to say hi and introduce myself. My name is Dustin and I currently work as a detailer for a civil engineering company. During my down time at work I like to make blocks and simple commands to help streamline my job. The problem I'm dealing with right now is whether or not it is possible to manipulate individual grips at a macro level. What I wish to do is create a command that will insert a dynamic block--which contains two polar stretch points--and then click both locations for the points. If anyone can understand this and knows what I'm talking about, please let me know if it can be done. Thanks.

 

At the macro level, things will run a little differently. From a VBA perspective, could can place a block to a specific location - but not using a "ghost" image that follows your mouse around like is done by hand.

 

And if you know the names of the parameters in the dynamic block, you can just assign the values to these parameters - no "clicking" needed.

Posted

OK, so i found a little time. Hopefully this upload thing will work correctly - never done it before.

 

Attached is a simple drawing, with a simple dynamic block, and some simple VBA code embedded within the drawing.

 

It will prompt for an insertion point for the (existing) dyanmic block, place the block, and then generate random parameters for the block

each time it is inserted.

 

I coded the Block name, and Block parameters, as constants; you might wish to do the same. Note that the parameters I used were simple numeric parameters (Double precision); for things like Origins, you'll want to use different data types.

Dyn_Block_Demo.dwg

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...