pintseta Posted June 29, 2017 Share Posted June 29, 2017 hi, i've build myself a dynamic block with attribute, i want the attribute to change based on a formula that calculates a certain height (which i'm inserting on invisible attribute on the same block) divided by a dynamic distance of a polyline. inside the block editor i can see that the calculation is correct, but outside the block editor the attribute only shows ####. i can't find what i'm doing wrong, i'll appreciate your help drain.dwg Quote Link to comment Share on other sites More sharing options...
steven-g Posted June 29, 2017 Share Posted June 29, 2017 The second part of your formula is using the polyline length, but that formula will read the value from the block definition and not from your actual placed dynamic block, DELETE that field and replace it with a field from the block placeholder section and choose "Distance1" from the list. Then insert a new block, you will need to regen after stretching the block, but it should then work. Quote Link to comment Share on other sites More sharing options...
pintseta Posted June 29, 2017 Author Share Posted June 29, 2017 thank you steven, I've already tried that, it's not working as well (it was my first try and when it didn't work i try to use the length). drain.dwg when i'm looking at the attribute i get an error message i still don't know why it is not working. Quote Link to comment Share on other sites More sharing options...
steven-g Posted June 29, 2017 Share Posted June 29, 2017 It could be a number of reasons, but try this copy it should be working. drain.dwg Quote Link to comment Share on other sites More sharing options...
pintseta Posted June 30, 2017 Author Share Posted June 30, 2017 wow, thank you very much steven! i don't know how you did it but it's working! thanks! Quote Link to comment Share on other sites More sharing options...
steven-g Posted June 30, 2017 Share Posted June 30, 2017 Sometimes, you just have keep trying different things. In the end all I did was delete and replace that last field in your formula, editing it for some reason didn't work, it had to be replaced. Normally Attsync will fix problems after editing a block, but for some reason in this case that failed as well, inserting a new instance of the block did work. Just remember for next time that fields are odd in dynamic blocks and can be very difficult/impossible to get working. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.