AutoCAD .NET :: Block Table Case Sensitive Keys
Jul 1, 2013
When I want to test if block with a given name exists in drawing, I use Block Table. Has(key as String) method, which is case sensitive, but then, when I try to insert a block with the same name, but different case, the block name is considered the same.
How can I test if the block in in the drawing then?
View 9 Replies
ADVERTISEMENT
Oct 15, 2013
Does Saveas really need to be case sensitive. I just spent a lot of time trying to figure out why my addin wasn't working and all that was wrong is I had a capital P on png.
Dim sPath As String = System.IO.Path.GetDirectoryName(sIDWName) & "PartsLists"
Dim sFileName As String = System.IO.Path.GetFileNameWithoutExtension(sIDWName) & ".Png"
vs
Dim sFileName As String = System.IO.Path.GetFileNameWithoutExtension(sIDWName) & ".png"
Dim sPNGName As String = sPath & "" & sFileName
MsgBox(sPNGName)
oCamera.SaveAsBitmap(sPNGName, 1124, 899)
View 1 Replies
View Related
May 10, 2012
I understand that under the "system requirements" the Adobe website says that you can't install PS CS6 (Extended) on case-sensitive drives (I'm using a MacBook Pro, OS X v. 10.7.4). This seems to have been the case at least since CS5.I didn't see this, and I bought (quite excitedly) the update from CS PS5 (Extended) to PS6. I had NO PROBLEM installing PS5 on this drive.
Of course, as other users have indicated, the installer refuses to let you install on a case-sensitive drive (e.g., no options to install on another disk). There is also no mention that CS6 must be installed on the boot drive.Requiring installation on the boot drive has serious implications for those of us who require case-sensitive drives for other work; I don't want to have to reboot from another drive when I use PS, and switch back and forth -- that's simply foolish.
From my point of view (as a user, granted), this is lazy programming, and this needs to be fixed ASAP. At least in my case, I have a $400 lump of software just taking up space, when I want to be up to my eyeballs enjoying PS6 in all it's glory.
If I wipe my drive, format it as not case-sensitive, then I lose functionality for other critical work. Further, I'm not sure that the process of wiping the drive, formating it as non case-sensitive, and restoring everything from TimeMachine would even work (since the backup material is coming from a case-senstive drive and trying to go to a drive that is not case-sensitive).
View 32 Replies
View Related
Dec 19, 2013
create a routine to list all the dyanmic blocks in my drawing with a specific visibilty parameter name. The problem with the blocks that I'm trying to search for in my draiwng is that the visibility names are very similar with the only differences being CASE sensitivity (ie. OBJECT vs. Object).
(defun c:test (/ BNAME DATA E I PNAME SS VIS) (if (setq data nil vis (getstring T "
Enter the Visibility Parameter Name: ") ss (ssget"_X"(list (cons 0 "INSERT") (cons 2 "`*U*")) ) ) ;; setq (progn (repeat (setq i (sslength ss))(cond ((and (setq bname(vla-get-EffectiveName (setqe (vlax-ename->vla-object (ssname ss (setq i (1- i)) ) ) )) ) (setq Pname(car (vl-remove-if-not '(lambda(j) (eq (strcase (vla-get-PropertyName j)) (strcase vis) )) (vlax-invoke e 'GetDynamicBlockProperties) )) ) (not (member bname data)) ) (setq data (cons bname data)) (foreach itm data (print itm)) ));; cond );; repeat );; progn );; if (if (null data) (princ "
Block/Parameter Name not found")) (princ))
View 9 Replies
View Related
Jan 3, 2012
I just upgraded my macbook pro to a new drive and 10.6, and chose 'case sensitive' HFSX, 'cause I'm a heavy command line user and wanted the maximum BASH experience.I'm trying to install the CS5 demo to try some web design tools, and the installer immediately says "Installation to case-sensitive drives is not supported. choose a different drive location to install." So case-sensitive drives aren't supported; crappy but fair enough.
The error message leads me to think that I can just choose a non-case-sensitive drive to install to, but I never get a chance to pick one - I click on the installer and it goes straight to the error message.So - how do I pick a different drive to install to? Am I just an idoit, is there no way to select a different drive, or will it not install on a system that even BOOTS from a c.s. drive, regardless of the format of the drive that CS5 is installed to?
View 26 Replies
View Related
Dec 14, 2011
do you use all caps or do you use upper case/lower case in your drawing title block, bom, and notes?
View 9 Replies
View Related
Dec 1, 2012
How would I create a Point Table that would allow me to have Point#, Type, Size in individual columns when I have decription keys that area like this;
GUM 6 to be a 6" GUM.
Is there any way to have the data for the Type in one colum and the size in another?
C3D12
C3D12-13
Win7x64 6gb
View 3 Replies
View Related
Apr 2, 2013
I want to change the lower case words in shared parameters to upper case. Is there any way to make such a change in .rfa/.rte/.rvt file.
View 1 Replies
View Related
Sep 4, 2012
We use a number of blocks with block tables for data extraction here, and whenever one of the blocks is modified and updated, all of the block tables reset to the default value. This happens for any block reference change, not just changes to the block table (which makes sense that it would reset).
How can we update these blocks without having to manually change all of the block tables afterwards?
View 2 Replies
View Related
Nov 23, 2011
My boss gave me a copy of Autocad 2012. I've messed around with architecture 2010 before so the ribbons are no surprise. One thing I have noticed that's really different is the dynamic block constraints & block table actionblock properties table? I looks very similar to the lookup property table
View 0 Replies
View Related
Mar 7, 2013
It's about "Block Properties Table",I want to use a Block Properties Table to manage a Dynamic Block.
I have defined a Dynamic Block a and its Block Properties Table in Autocad2010,this is the screenshot of the Block Properties Table(a1:d1=100,d2=200;a2:d1=100,d2=400;a3:d1=100,d2=600.) Now I want to insert the Dynamic Block using .NET API.after I input a command,the block of a2(d1=100,d2=400) is inserted. I have the code about it, but the code is not complete. this is the Dynamic Block
this is the the screenshot of the Block Properties Table .
the result:
the code about it:
[CommandMethod("readBlockTable")]
static public void CmdReadBlockTable()
{
Editor ed = Application.DocumentManager.
MdiActiveDocument.Editor;
// select a block reference
[Code].......
View 8 Replies
View Related
Aug 25, 2011
So I'm creating a block with a block table and constraints. The constraints such as Geometric Constraints work just as assumed. When adding in dimensional constraints we start to have more fun. So I have dimensional constraints that use other dimensional constraints to manipulate itself.
EX. dimconC = (dimconB-dimconA)
dimconA is 12
dimconB is 14
dimconC would be 2
Now when ever dimconA or dimconB change dimconC would populate accordingly.
With this I wanted to make an attribute that could be placed in instead of a dimensional constant.
EX dimconC = ((Att1*dimconB)-dimconA)
Att1 is 02
dimconA is 12
dimconB is 14
dimconC would be 16
However when trying to place in formula that references a attribute I keep getting an error "A DEPENDENT EXPRESSION CANNOT BE EVALUATED" So I assumed it was missing an expression from the attribute, however once entering an expression in for it I still get the same error.
(full error message attached)Constraint_Error.JPG
Is this something that is not allowed at all or have I over looked something?
View 2 Replies
View Related
Jan 18, 2012
What are all the block table records?
I've got Model Space & Paper Space(Or Layout Space) under control.
I've got two block reference instances of the same block on a drawing.
If I purge the Drawing the older duplicate block reference disappears.
7867 is the older reference that disappears when I use the purge command.
78A7 is the newer reference, I only want to see this one on my extraction of attributes.
What property of the block reference will tell me that it would be purged if I used the purge command?
As I want to detect what's the old block and which one is the current block reference.
The problem is I only want to extract the attributes from the newer block reference.
The old block reference is coming up... how can I filter that out of my loop results?
I know I could just purge the drawing and my problem would be done with.But I need to do this in a manner that only accesses the drawing from a read-only manner.
View 7 Replies
View Related
Jun 20, 2011
Ok over the past few weeks I've got pretty much most of the Dynamic Block stuff down except this feature.
I've attached a drawing. In the middle I used VISIBILITY to have all the different weld types. I need something at the end to where Weld Tails can be added if they're needed but you can only use one Visibility per block. I'm also going to need something at the front of the block for different symbols like "Field Weld" and "All Available". If I can figure the Tails out then I can do the other one.
View 0 Replies
View Related
Jun 8, 2012
Here is what i would like autocad to do
I work in architecture, and every time i create an opening (door, window) i add a block next to it with an attribute to the reference number
I was wondering if it would be possible when creating that little block to give it more information and later on extract the information from it to a table
Ex: door 106-02, steel finish, 3'x7' , isolated, steel frame, 2" thick etc.
View 0 Replies
View Related
Jan 22, 2012
If it is possible to set a block's dimensions to read a table's cell value. Say a rectangle has dimensions x wide by y tall and a table has the x and y values given in cells a1 and b1 linked from an excel spreadsheet.
I would like to link it like this because i have an excel file that will update and then output to AutoCAD. Is this possible and if so how? I have figured out how to link the excel table into AutoCAD. I am using AutoCAD 2012.
View 3 Replies
View Related
Dec 10, 2013
I've created this dynamic block for work. Its an overhead cupboard with 4 doors. My problem is that when i create a table through data extraction the value for the length and height for the doors aren't shown (The column this there with a heading, no value), the length of the cabinet and visibility is though. Do i need to assign an action or something for the value to be displayed?
View 6 Replies
View Related
Dec 11, 2012
Is there a trick in using a dynamic block in a table cell? When a dynamic block is inserted into a cell, any visibility can be viewed (Properties Manager) in that cell if the visibility state has a block in it. What happens if the visibility state does not have a block. That is, if the view has exploded block so one can use parts in actions etc? Can I view ANY state in a cell regardless if it has a block or not? Or must the visibility states have blocks to be able to use it in the table cell?
View 2 Replies
View Related
Oct 22, 2012
I have created a dynamic block and have applied some lookup tables to it but its not working just the way I want it. I think its to do with the custom entry on the lookup tables. If I delete the custom entry when i select the block in model space the drop down select box to allow me choose a selection is no longer available. How can I remove the custom entry and still have the block working normally. I've attached the block.
View 9 Replies
View Related
Jul 25, 2012
I am trying to add a table that I can edit like an attribute but have it in a block, Basically I am trying to put information for all the poles in an electrical panel, but im not using MV parts just a block is there anything that can be recommended in this instance.
Just another note I need to reference 72 poles and 5 colums for each of these.
View 1 Replies
View Related
Dec 31, 2013
I am not sure this is even possible, but could I use some sort of invisible block attribute data and everytime I insert it into a drawing (I use the same block multiple times within a drawing) it would autopopulate fields in a table. For example I have a smoke detector symbol I insert, I also have a specific address associated with every single detection symbol I insert into a drawing, would I be able to attach data such as what type of detector it may be and have the address and type automatically populate in a table everytime I insert my block into a drawing?
View 1 Replies
View Related
Jun 26, 2012
I'm creating a routine to fill in my terminal strips. This routine worked perfectly in Vba but I'm now rewriting it for .NET...The problem is that I want to insert a block with attributes into different cells.The tables already exists. Below my function, I'm stuck on this part
Dim lonReturnedIds = FunBlockId() ' Calls the function FunBlockID to get the ID's of the attributes
' 0 = BlockID
' 1 = AttributeID of KleurB
' 2 = AttributeID of KleurO
TS.Cells(i, intPosition).Contents.Add()
TS.Cells(i, intPosition).Contents(0).BlockTableRecordId = lonReturnedIds(0)
TS.Cells(i, intPosition).SetBlockAttributeValue(lonReturnedIds(1), strCableConductor2WriteFirst)
Public Function Fun_StripUp(ByVal Po3dXY As Point3d, ByVal str_CableName As String, ByVal Str_CableConductor As String, ByVal strCable Conductor 2 Write As String, ByVal strCableConductor2WriteFirst As String, ByVal intPosition As Integer) As StringDim tAcadDoc As ApplicationServices.Document = ApplicationServices.Application.DocumentManager.MdiActiveDocumentDim myDB As.
[code]...
View 2 Replies
View Related
Apr 26, 2012
I am having some troubles whit my dynamic blocks. Whenever I add a block property table the window that should be opent doesn't open. The strange thing is that I think it actualy is open but i just don't see it on my screen. The same thing gous for the screen that allows you to ad a parameter to a lookup set. by folowing this link you can see what i mean, it gets interesting after 30 seconds.
[URL]
Is there a variable that decides where on your screen you see these screens?
View 3 Replies
View Related
Jan 24, 2012
I've created a titleblock with a menu to select sheet size, a single set of attributes that serve all the different sheets, but now I'm trying to find a way to add a table.
The table is to sit above the title box and include information on: New revision number
Text detailing changes since the last revision (might be single or multiple line text)
Date of new revision . The bottom line needs to sit flush to the top of the title block so the top line would be moving up the sheet as new lines are added if that makes sense?
View 7 Replies
View Related
Feb 13, 2013
I am working with a set of dynamic blocks, each with a block table that provides a drop down for the user to alter attributes from. My goal is to be able to update the block table using VBA to push data from an excel file. I do have import/export code that will update block attributes, but I am not sure the functions that would access the table properties.
View 7 Replies
View Related
Nov 8, 2013
The "Main Stretch" parameter does not correspond with the Block Properties Table. What does this parameter need to be attached to?The paramter will adjust with the pull down options of the Block Properties Table.
View 5 Replies
View Related
Mar 21, 2013
I have created a sample drawing, to illustrate to the design manager at work that we can use AutoCAD to assist us with the scheduling of materials, but I am unsure of all the ins and outs of it myself!
See attached drawing to make sense of the following:
Ordinarily we would use a panel reference number for all 50mm panels of identical length, i.e., all 1200mm panels (our standard width) will be assigned a panel code, often P01... etc etc. From the data extraction (EATTEXT) command, as you can see, all 50mm cleanroom panels under the 'name' column are according the block name, in this case, I've called it "Cleanroom Panel 50mm". Is there any way to assign an individual tag to all panels of equal length, yet maintain the same block - or is this simply asking too much?
The reason for this is that although the autocad generated table is ideal for quantifying and placing orders for materials, we are a design and build firm, all our construction workers will need to be able to identify where on a plan an individual panel is, i.e., all well and good to say one panel is 332mm long, and one is 350mm long, but he will need to know what panel is to be installed where...
View 2 Replies
View Related
Mar 15, 2011
I used the Block Properties table in dynamic block editor. I picked 3 out of 6 atributes to include in the Block properties table and I inserted the predefined values. When I view the block in testblock edditor everything works. Everything works also in the same drawing were the block was created. I can choose the predefined block vallues from the dropdown list.
The problem is that when I save the block in the block edditor as new drawing, for the purpose to use this and include this block in another drawing, then the attributes witch were associated with the Block Properties table are missing. They are also missing when I open the block editor in the new drawing. The attributes that were not associated with the table exist.
I have added 2 files. 1 with the block created in the same drawing and another where the block was saved an inserted to a new drawing.
View 8 Replies
View Related
Apr 26, 2012
I am having some troubles whit my dynamic blocks.
Whenever I add a block property table the window that should be opent doesn't open. The strange thing is that I think it actualy is open but i just don't see it on my screen. The same thing gous for the screen that allows you to ad a parameter to a lookup set. by folowing this link you can see what i mean, it gets interesting after 30 seconds.
[URL]
Is there a variable that decides where on your screen you see these screens?
View 2 Replies
View Related
Feb 18, 2013
How to flip the direction of dimension constrains in “block table”,
In the screenshot below, the default direction of dimensions constrains are given in the direction of digitizing (by design)
How this direction might be flipped?
For example, in the ArcGIS software, one can see the direction of digitizing as well as flipping it
Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.
View 4 Replies
View Related
Aug 29, 2011
I am creating some table of contents. The first column contains symbols that are inserted blocks. Now, when I've created dynamic blocks I've made them to have more visibility states. If I insert the block that has such states, only the saved state is visible. Is there any way that I can use more visibility states when inserting some block into table.
At the moment the only solution is to insert another simplified block that I've created just for this insertion. That way my blocks library is getting bigger and bigger only because of this. I don't use simplified blocks in my drawings, except for the thingy mentioned above.
View 6 Replies
View Related