CAD Forum ► EN ► AutoCAD ► Dynamic Blocks - Flipping a Linear Parameter
Display full version of the post: Dynamic Blocks - Flipping a Linear Parameter
BehzadCAD
07.03.2016, 03:14
Dear Reader,I hope this is not a repeated topic. If it is, excuse me and lead me to that topic.Subject:We can stretch object with a linear parameter in different direction if we specify the angle of stretch. (See Screen1.jpg)Issue:When I try a flip parameter, and test the block, Isee after flipping, when I change the linear grip, the stretch on vertical element goes in the wrong direction.Note:You can see 2 blocks in attached drawing. Block A is a copy of an Architectural door block and Block B is what I am testing.You can see Block A works and Block B doesn't.Does anyone know what I am missing here in applying the flip action?I will appreciate your help. I will share my final block as a thank you in here for everyone to use.Waiting desperately for answer.Kind Regards,Behzaduploads/342811/Dynamic_Blocks_-_Flipping_a_Linear_Parameter.dwg
BehzadCAD
07.03.2016, 23:05
Forty-something view but no reply I think I have to set a variable to the right value before applying the flip action. Googling right now
BehzadCAD
07.03.2016, 23:24
Well,I found the answer However I leave it as a challenge for viewers Comment if you want to know what went wrong in my drafting or you have similar issue.Have a lovely day
BehzadCAD
09.03.2016, 22:53
131 view so far and no reply (it will be 128 or close, not counting myself!)Does all +100 people looked at the e-mail know what went wrong and don't bother?Well, for the first topic I made in the forum this is unexpected result and I feel very welcomed here!Have fun
John Connor
09.03.2016, 23:50
You asked and answered your own question but did not bother to share your new found knowledge. I guess you could say what goes around comes around.
BehzadCAD
10.03.2016, 02:33
Mr John,I rather share what sounds interesting. On the other hand, I made it a challenge! Didn't you read it all?I would care sharing when i see there is at least one person WONDERING!I care to see if anyone cares and I am excited to share what I learned to someone! But who? You? If you viewed this topic previously and left the page not caring what might be the answer, why you are bothering now with replying and trying to prove something?!I care enough to come to page every couple of hours to see if someone has same problem or is interested to see the fixed problem!To be honest, your reply wasn't nice. Thanks for the "welcome to the board" from a senior member!Regards
John Connor
10.03.2016, 11:30
I didn't have access to my CAD computer so there was no way I could open the drawing and test your dynamic block. I'm not going to apologize for that. If you want to leave and never come back that is entirely up to you. I for one will not lose any sleep over it. If you really must whine then go do it somewhere else.
John Connor2016-03-10 12:30:48
BehzadCAD
10.03.2016, 23:40
Mr John,You interpret my words in your mind and answer your interpretations!Nothing was said about leaving!Nothing about "Why you did not answer my topic"Nothing about apologizing!These are your interpretations of straight forward post! I don't see it necessary to explain myself to you more!You sleep or not it is your business!I keep checking MY topic every morning when I come to work and few times there after. I WILL wait for someone who may face the same issue and wonders what is the solution or someone who is interested enough to reply and ASK "hey Bez, I like to know how to flip a linear parameter without getting error in your example!" Then I share what I found with him/her.If knowledge is not packed with humbleness, it is poison! Finally, this is my Topic. I am following the rules of the board and I like to express myself HERE. If your interpretation of it is "whining", then let it be! But why go somewhere else? I feel being criticized by a SENIOR member on my first topic on the board and I like to express it!I will wait for a nice reply from someone else who is humble enough to say he/she doesn't know something. The time we THINK we know EVERYTHING is the time we know NOTHING!RegardsBehzadCAD2016-03-11 00:07:39
John Connor
11.03.2016, 00:17
YAWN! Are you done yet?You're the one with the attitude right out of the gate crying about how nobody responded to your thread. So what? It happens a lot of times for a lot of reasons. Go take a cold shower and calm down. It ain't the end of the world....yet.
BehzadCAD
11.03.2016, 01:02
Again avoiding facts and interpreting!I don't need your reply. Sleep well.
John Connor
11.03.2016, 11:31
Reasons why threads might show dozens of views but no replies.-Many people like to read the entire question BEFORE they decide if they will or won't, can or can't answer the question.-Curiosity. Looking for more information (ex. - the version of AutoCAD being used).-Inadvertently clicking on a thread.-People who stumble across the site, look at a single post (yours?) decide it's nothing of interest, leave and never return again.-Or "they" aren't people but BOTS! Do you know what a BOT is? Take a look at the CAD Discussion's page under the heading Active Users and see who is online at any given moment (members, anonymous members, guests and search robots). Does that give you a clue?-The person viewing the thread honestly doesn't know the answer or needs to do some research first before returning with an answer. Or maybe they can't quite figure out what is being asked and return for a second or even a third look.I can point you to at least four other CAD help sites, similar to this, where questions go unanswered with far more views than yours. Stop getting your panties in such a twist over such a trivial thing. Sh!t happens dude.Example: There is another CAD help site with a very similar name to this one called CADforums (note the "s"). Two threads listed on the first page are noticeable for their lack of responses. The first has 1,508 views and 0 replies. The second has 26,032 views (imagine that!) and 0 replies. And you got upset because your thread had how many views with zero replies? Let's see. It was.........131 views. Do the math. Compare your number to both of those numbers and tell me who should be crying the blues the loudest? Gain any perspective yet?
John Connor2016-03-11 15:26:08
Hi all, I saw this post and thought I would like to take a crack at this.I took me quite some time to get to a solution. (How the small things that matter slip your mind) Anyways the steps that i carried were:1. Changed no. of grips on the linear parameter from 2 to 12. Applied stretch actions to both lines perpendicular to each other. (Used the single grip as the common base)3. For flip, I re-entered the "Flip Action" again and typed "all" instead of selecting all with the mouse. That was all it took. Well felt like a big weight had been lifted from my shoulders.I took the initiative to apply a flip parameter along the x-axis to prove that it works along both x and y axis.Check the attached dwg. uploads/362391/Flipping_a_Linear_Parameter.dwg Regards,Ejas.
BehzadCAD
21.03.2016, 05:34
Ejas,Thanks for reply and sorry for my delay in reply.Well done and you got the answer I looked for it for a while.Your point 3 is the answer. For Item 1 and 2, Changing grip numbers is not necessary and stretch was already applied to both lines.What I didn't know at the time of posting this topic is your number 3.To do a Flip we better do select all instead of drawing the rectangle to choose to be safe.This can work for simple blocks but as your block gets complected you need to specifically choose what to be selected in your actions.With any action applied to a parameter we create an extra object which cannot be selected by normal window selecting IF IF IF the variable bactionmode=1Set bactionmode to 0 and you see all new action objects and you can choose any you want.Here is an example:uploads/342811/Dynamic_Blocks_-_Flipping_and_Rotate_a_Linear_Parameter.dwgIf you add a rotate parameter to the same block, you need to:1- Set bactionmode=02- Click on Action called Rotate, and choose action called Leaf to add it to selection3- Click on Action called Leaf, enter, select the angle parameter to add it to selection4- Click on Action called Flip1 and either type "all" or click on rotate to add it to selection (make sure Action Leaf is selected)This knowledge helped me to create my favorite door dynamic blocks for hinged and pivot doors. I know there are 10s of door dynamic blocks out on the web, but they didn't have all the options I wanted. For example, for pivot door, I wanted a block in which you can control some aspects with grips and/or properties menu like: Glass width, Pivot offset, Glass Thickness, Glass type (Laminated or not), Leaf rotation, alignment and finally flipping in/out and left/right. Making it was a challenge but you can do ANYTHING you want to, if you put your mind into it.Thanks for reading,Kind regards
BehzadCAD2016-03-21 22:38:19