t-bone67
2005-06-05, 05:32 AM
I have this nice routine that inserts a user specified light fixture in the center of a room. At the moment it's using the insert command to insert a block from our symbols library, so the entire path to the appropriate directory is in the code. It works great, but if the symbols directory gets moved I'll have to go back and change the code or if I send my routines to an outsource I'll have to change the code and or send them my blocks.
Therefore, I want to use entmake to create the blocks and then insert them. I looked all through the Help file, but didn't find enough info to be useful. All I know is I need to make multiple calls to entmake. The first to establish I'm creating a block and an additional call for each entity that will be included in the block and the final call is to endblk (I think).
Can anybody help me out? All of them, except the ceiling fan symbol, are just circles, either a single circle, a double circle, or a circle with 2 lines forming an X. I thought it would be simple, but I can't find any example code to go by.
Thanks in advance!!
Therefore, I want to use entmake to create the blocks and then insert them. I looked all through the Help file, but didn't find enough info to be useful. All I know is I need to make multiple calls to entmake. The first to establish I'm creating a block and an additional call for each entity that will be included in the block and the final call is to endblk (I think).
Can anybody help me out? All of them, except the ceiling fan symbol, are just circles, either a single circle, a double circle, or a circle with 2 lines forming an X. I thought it would be simple, but I can't find any example code to go by.
Thanks in advance!!