Jump to content

Editing Block attributes with Conditions


fssfireinc

Recommended Posts

Hello,

 

I am inserting a block into my drawing called vp_block. The block can be inserted anywhere from 6 up to 1000 times in a drawing. There are two tags associated with the block they are Pipe and Direction.

 

When we currently insert a vp_block Pipe is given a letter for the value it increases by a letter every time inserted. Direction is given the same letter but also contains 2 numbers Example being A,1,2 then on the drawing there is an A,2,1 This dictates the direction.

 

I am looking to see if its possible to use VBA to condition tag Direction to know if the first number is bigger or smaller then the second number. And based on that it would update the PIPE tag with "UP - 9feet" or "Down 9- Feet" based on the condition.

 

Thanks Chris

Link to comment
Share on other sites

  • 1 month later...

hi

 

1. Im sure you can do all you want - just depends how clear you describe your problem

 

Means Tag a Attribute or a dynamic Property ?

Is theblock placed by hand or by routines ?

Can the block be placed by routines (e.g. Excel sheet etc)

Is there a example dwg ?

 

So if you want help dont be so greedy with informations

it takes time to track down a problem so be so kind and take also time to describe it carefully.

best regards

Link to comment
Share on other sites

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...