Jump to content

Recommended Posts

Posted

Greetings everyone! CADTutor virgin here, so bear with me if this has already been asked as I couldn't find it using the search function.

 

The Issue

I'm trying to create a dynamic stretchable corner section of a counter top. I have the stretching functionality working just fine, but I'm trying to make the block a little smarter for data extraction.

 

I have two linear parameters (named x and y) set to measure the distance the counter top spans in each direction. I have an invisible attribute in the block named LINEAR.

 

What I want to accomplish here is simple. I want LINEAR's value to be x+y. I've tried inserting a field and using the object option to link the two linear parameters into the attribute but I can't seem to find a way to get the two parameters to add together.

 

Is what I'm trying to do even possible, or am I just missing something?

Posted
does this thread http://www.cadtutor.net/forum/showthread.php?20405-Dynamic-Block-Linked-with-Field&highlight=formula+field help? It was a long time ago but may give you an idea. I don't have 2011 (don't have anything at the moment as I'm not at work) which may have other commands available.

Alright, that thread helped a ton! I'm extremely close to getting something that works.

 

The issue I'm having now is that the value of LINEAR turns into hashes (####) when I run a block test or a data extraction. For some reason it isn't keeping the distance of x and y properly. I need the value of LINEAR to display/extract as 3'-6" (by default) and to update as I stretch the length of the counter top. I feel that this would work if I could find out how to make stop going from giving me the total distance to turning into hashes.

 

Any idea why it's doing this?

Posted

Just a thought, extract each value separately and then make a formula column in the output that adds the two together. You may not be able to use the 3' -6", instead use all inches then use another formula column to turn back to feet and inches. You can hide all the columns you do not want to show up. Mark

Posted
Just a thought, extract each value separately and then make a formula column in the output that adds the two together. You may not be able to use the 3' -6", instead use all inches then use another formula column to turn back to feet and inches. You can hide all the columns you do not want to show up. Mark

That would be a good work around, but I managed to solve the problem!

 

What I was doing wrong was trying to associate x and y in the block editor rather than waiting to do that after I finished creating the skeleton of the block and the attribute that's the supposed to contain the formula. After the block was created, I double-clicked it to bring up the attribute editing window and right-clicked the attribute value and inserted a formula field.

 

Thanks for the help everyone!

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