Jump to content

Does anyone know about dynamic blocks?


Recommended Posts

Good day all!

 

On the attached file, I would like to enter the address, and the switches set themselves to the proper binary arrangement. How does one do this? I'm a 2D electrical user, I have no cad knowledge beyond that. Is this something very hard to do?

dip switch.dwg

Link to comment
Share on other sites

  • Replies 21
  • Created
  • Last Reply

Top Posters In This Topic

  • quietman187

    7

  • ReMark

    6

  • Bogbadbob658

    2

  • Ski_Me

    2

Well, it does not have to be dynamic block.. whatever "works". I dug around the internet and could not find too much info about it, I was thinking someone has been through this before and I can just copy their block. If its too difficult, I will adjust them manually as usual, I just have a huge project coming up. (189 devices).

Link to comment
Share on other sites

I don't know what a Visibility parameter is..

 

Adjusting them manually= picking the boxes and sliding them up and down... it plays hell on your fingers with the amounts of clicking.

Link to comment
Share on other sites

You specifically asked about dynamic blocks so I thought you at least read up on them before inquiring.

 

Let me give you an example of a visibility parameter. You could have a device with just one switch. The switch would either be "on" or it would be "off". You would construct the block showing both conditions then using the BEDIT command open the block editor and apply your visibility parameters such that when the switch is "on" it is shown in one position but the "off" position is invisible. When the switch is "off" the reverse would be true. I suppose you could create the device with eight switches and use this method to turn each switch either on or off.

Link to comment
Share on other sites

^^^Basically what I described although the OP seemed to be saying he wanted to enter an "address" and have the switches automatically set themselves to the right position. I vote for the design above.

Link to comment
Share on other sites

I've attached a dynamic. Select the block then click the blue arrows to change the settings of the switches. Is this what you want?

 

Not sure, Can you save in 2010 format and repost? I can't open it.

Link to comment
Share on other sites

HEY! that is pretty cool... I was hoping to enter the address then the switches would move themselves based on the binary ... but this will definitely work and save time! Thanks a bunch. Leave your paypal addy and I can donate a small bunch..

Link to comment
Share on other sites

Using fields and attributes you could most likely generate the binary based on the positions in the block. I am fairly certain outside of using a custom LISP routine you wouldn't be able to have the block do what you want exactly.

Link to comment
Share on other sites

If only dynamic block could be linked to an excel file and using the if command would be a breeze to do along with lots of other projects in mind.

 

Maybe i should add it to the wish list in cad future releases versions.

 

Again if any forum member users does have a way to insert new commands in the dynamic block editor cui toolbar to do so or abling formulas in the lookup table to expand variables to use when special calculations in reference with others are needed please share it.

Link to comment
Share on other sites

Bit late, but this will do it using decimal input, click on the block and in the properties pallete chose the "Decimal value" (0 has to be entered as .5 just because a line cannot have zero length), or you can directly choose the binary value from the lookup, or use the stretch arrow above the block - I only filled in the values up to 32. I couldn't get it to accept typing in the binary values directly into the lookup for some reason. When you change the value it will need a regen to update properly.

dip switch.dwg

Link to comment
Share on other sites

steven-g, nice job. I'd thought about doing something similar, but decided that 256 variants in a table was just too much. Now I'm wondering if handling it as two sets of four switches might be workable somehow and still retain the tables. I don't usually work directly with binary, so I don't know how those who do would be able to incorporate the idea. I would think a LISP routine could handle it quite easily that way. Well, just a wild thought.

Link to comment
Share on other sites

LISP could handle it since it is a math related function. My question would be how could you extract data from each block that you place from it's attribute then tell it to move the switches based on that data. That would be one hell of a script.

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