AutoCAD :: Filtering Property Set Definitions In Tables?
Aug 14, 2012
On my Property Set Definitions I have a attribute table called "ROOM_NO". This is where I enter the full number/character of the room, in my case the value usually looks like "101A", and sometimes "A101B" for Room number.
I was asked to do another table to separate the fields.
ROOM_PREFIX ROOM_NUM. ROOM_SUFFIX.
Separating the room number in 3 attribute tables to "A 101 B"
I was thinking referencing the ROOM_NO table in each box and filtering out the numbers and character. For example in ROOM_PREFIX I would reference ROOM_NO and filter out the number and the suffix letter through a formula. And in ROOM_NUM I would Filter both alphabetical character.
I have created a new property set definition and added two manual property definitions and applied this to all objects. Every object on the drawings has distinct values for these two properties. These property values show correctly on the Extended Data tab of the Properties palette.
I have published to DWFX with AEC property set data set to 'Include'. In the resulting DWFX in Autodesk Design Review I can select each object and see the standard properties but not my special property set data.
Any way to create a dynamic link between the property set attached to a space and excel?
I have a lots of spaces that has a property set attached, some of this property changes often. So if it was possible to create a excel sheet that presents each property for each space and then I could change the property in excel and put it back to Architecture it would save me a lot of time.
I am using some custom property set definitions to add information to spaces. However as I insert spaces I find that I have to go to the extra step to add the property set to the object using the Extended Data tab in the Properties Palette.
It is not a huge deal but sometimes it is forgotten and schedules are not reporting properly, or the display theme is not correct. Although there are tools to quickly add them I would like to know if there is an automatic way to add them while creating the spaces/zones.
On a related note. There is a property set definition that is in each file by default called RoomFinishObjects. Is there a way to purge this? I don't want to attach finishes to my objects. But it seems to be embedded in the file.
Is there a way to preset the reach of the sprout on Location Property Definitions in Property Sets?
For example, I have upper cabinets that aren't over a Space, because there isn't flooring underneath them. Because of this, the sprout reports "Space Not Found" in the cabinet schedule, and I have to go in and manually pull each sprout out until it latches onto a Space.
I would like to set all sprouts to automatically reach out 2'6" from their insertions point.
I FINALLY decided to get my head around the Sheet Set Manager (kudos to Kate Morrical's video series).
I understand the need to create custom properties, and I can see that you can either "add" or "delete" custom properties, but is there any way to CHANGE the property after it's been defined?
For example, if I create a custom property complete with a default value, but discover later that I made a spelling mistake (eg. "Darwn By" instead of "Drawn By"), is there any way to MODIFY it?
I have been trying to find a method to extract custom properties from the custom property bag.
I have been able to extract the property value, using the "GetProperty" and the associated "GetValue" method, this method works when I know exactly what property name I am looking for. What do you do when you don't know the property name?
here is my code snippet..
dim myProps as acsmcustompropertybag = mysheet.getcustompropertybag dim myProp as iacsmcustompropertyvalue = myprops.getproperty("SOMENAME") dim myPV as string = myProp.GetValue
what I want to do is:
dim myProps as acsmcustompropertybag = mysheet.getcustompropertybag dim myPN as string = ??????????.tostring dim myProp as iacsmcustompropertyvalue = myprops.getproperty(myPN) dim myPV as string = myProp.GetValue
what Collapse To Definitions does inside the iLogic Rules Editor. I've read online how it works in applications such as Visual Studio but I don't see any difference in iLogic between it and the other outlining tools such as Toggle All Outlining.
I am creating a series of Blocks representing cable terminations with labels at each end for terminal number, wire number and wire color for each twisted-cable pair, ie six labels for each pair. There will be blocks for cable configurations with different numbers of pairs. Having created the first block for a single pair, it should be easy to develop the multiple pair versions by copying the elements and renaming the labels, but I have to edit each attribute definition individually - is there a way of globally editing the definitions in the same way that you can edit attribute values when the block is used; eg if I have attribute Tags T1, W1, C1 and want to rename them to T2, W2, C2?
I have been having trouble storing attributes on border definitions. I have multiple borders which need to be used for different types of drawings. I have developed a tool which will use the desired border pragmatically and it works as planned. Currently the logic selects a border based on name, but since this can be edited by the user I need a more dependable way of retrieving a border. I had thought attributes would be the answer, but I'm running into problems. The attributes just won't stick. I've tried to add them manually through the API and with the Attributes Helper tool released.
See below for the code I'm using to add the attributes
Dim oAttr As Inventor.Attribute Dim oAttrSet As AttributeSet Set oAttrSet = oBorderDef.AttributeSets.Add("TestAttributeSet", True) oAttrSet.Copy = True Set oAttr = oAttrSet.Add("TestAttribute", kIntegerType, 12345) Debug.Print oAttrSet.Parent.Parent.Name & " " & oAttrSet.Name & " " & oAttr.Name & " " & oAttr.Value
It will print information leading me to believe that the attribute was added, but if I try to retrieve it either through the attributemanager or manually cycling through the border definitions no attributes exist.
I've created a dynamic block with two visibility states. The second state is a copy of the first state, but some of the attribute definitions have been moved, along with some of the geometry.
When I insert the block, then toggle between the two visibility states, the geometry changes as I would expect, but the attributes stay in the position dictated on the first state.
How can I make sure that the attributes move for the second state, as I need them to.
I am a user of AutoCAD 2014 plain vanilla. I created a title block for my company which has worked well for a year or so. Recently, I have been experiencing the following. After inputing info like an address, sheet name etc. into an attribute definition everything will be fine. When I go and work on other other pages in paperspace, and then return, I will find that the text has dropped vertically into an area it shouldn't. how to remedy this? Attached is a screenshot.
Basically I have a rectangle and want to change the dimensions of it. There are a couple of attributed definitions that I want to stretch the and change it length but I alsowant the attributed definitions to move with the right hand side of the rectangle and the stay a constant distance from the right hand side. Unfortunately when I use the stretch action it filters out the attributed from the object that I can stretch, any way to include these AD’s with the stretch action
I've got some 2D contours that have certain vertices very close to each other in some parts of the string. Some are only 0.008 apart. The cross checking in Drawing cleanup is picking these all up as crossing strings.
anything that will possibly filter out these vertices at a set tolerance? I've tried using Snap clustered nodes but that won't work seen as though it is occurring on the same string.
I have a drawing with all my block definitions and the blocks inserted and annotated. Seems that in a previous version of Autocad, I could insert the drawing and cancel the insertion at some point of the insertion command sequence, such that the drawing was not inserted, but all the block definitions remained. I could then use the insert command and all of these blocks were available. Yes, sometimes this made my drawing memory size rather large and I would have to purge the unused blocks later to reduce the memory size of my drawing.
Any way to automate the import of Style Definition files into the style and standard manager in the drawing environment? If not is there some other way to do it?
Is there a way to change the material definitions to CTB format in the plot style under the material style? See attached image.
I have a client that wants everything in CTB format and in AutoCAD Architecture. I can get the drawings into CTB but the materials plot way too heavy and when I go in the styles they show Full Saturation or Wide, Thin from the STB plot styles.
The Drawing is in CTB and I am pulling my hair out trying to get the couple materials used set to Color based plotting.
I'm having issues with Civ3d 2013. I pushed off upgrading because of the format change and the service pack release. I was hoping little glitches would be fixed.Here are the a couple of glitches to date that I saw no resolution to in the long list of threads.
1. Layer filters do not filter, unless I have checked "Apply filter to toolbar". The problem is, I don't want to apply them to the toolbar.
2. Publishing to PDF - when set to lines merge (set in the page layout and the publish setting), the wipe outs don't work, and the background masks on leaders makes a faint border around the text in the PDF. When set to overwrite, to get the wipeouts to not print to the PDF as a big black blob, they have to be on a layer set to color 255. I can work around most of the wipeouts, except for dimensions because the background mask doesn't seem to take.
another complaint that doesn't have anything to do with AutoCAD, but since I'm venting... we just got a KIP 7100 printer/scanner. WORST printer/scanner we've ever had. Period. Getting the right driver, then getting the driver to produce good drawings to the correct paper size was ridiculous, and the gray shades still look like we're using a big dot matrix printer. Scanning is the most painful thing; compared to the Xerox 6204 we gave up, the quality is poor and PDF file sizes are huge.
I'm trying to insert our company logo (a DXF file) into the a title block definition however the insertion point seems to default to 0,0.How can I insert it with a user defined insertion point?
You will see from the attached screen snipe what I mean about being forced to insert it at the 0,0, coordinates. I'd like to insert it into clear space then scale it and move it into replace the existing logo.
I am new to dynamic blocks. I have figured out how to use the Properites block for "preset" definitions but we offer a product in infine sizes (within limits). For example the width may range from 30" to 200" in fractional increments which is impossible to set up presets. Is there a way that a person can set up the properties block so that a person would be prompted to enter required information, I.E. Width = xx", Height = xx" etc.?
Is there anyway for me to check the filtering applied to a parts list (on the drawing) via the API? I looked but couldn't see where to access this information - am I just overlooking where it is stored on the object?
I've got a drawing in which the existing ground is so jaggedy that I've got way too many grade breaks (see the attached image). I know I can use the weeding and eliminate the labels every 50 feet, or so, along the profile. But I need to have the ability to only show a specific grade break range. For instance, I'd like for my profile only to display grade breaks between 0% and 2% and not to display anything above 2%. I've tried making an expression, but have been hitting brick walls. I also know I can manually (use the CTRL + click) select the specific labels that I don't want and erase them, but I've got lots of these labels. Any LISP routine or an expression that can accomplish this? [URL]
I'm having a problem making paper size filtering 'stick'.
For years I've configured PC3 and their associated PMP files for each of our printers and plotters. As a part of the configuration, I filter out all the paper sizes we don't use. Once the PC3 and PMP files are configured, they're copied to all the local PC's. I've never had a problem with this, until now.
On the PC where the PC3 file is configured, the filtering is correct. On any other PC, various paper sizes are added. For instance, I'll filter out all paper sizes on printer "X" except for 8.5x11 and 11x17. On a similar PC, the paper sizes "16k 197x273mm" and "8k 273x394mm" are added.
If I point the PC's to a location on our network where the PC3 and PMP files are stored, I get the same results.
We have two OS's here - Win7 Pro and XP Pro. All OS's are kept up-to-date. All the Win7 PC's use the same version of the HP Universal Print Driver. All the XP PC's use the same version of the printer specific drivers.
I have created a new layout from Templates that are the C3D standard templates. I get the below messages in my command bar and subsequently my template does not have any of the blocks, north arrow...nothing. Just a blank sheet. Why? See below messages that I copies from the command bar....
Command: <Layout from Template> Duplicate definition of block _ClosedBlank ignored. Duplicate definition of block AeccTickLine ignored. Duplicate definition of block AeccTickCircle ignored. Duplicate definition of block North ignored. Duplicate definition of block Graphic Scale - Imperial ignored. Duplicate definition of block ANSI D Title Block ignored.
The CADdesigners have asked me if i can make a function that runs through our AutoCAD 2012 MEP model attaching certain predefined classification definitions to ducts, pipes, MVparts etc.
I have used hours searcing for examples / tutorials on how to connect to the MEP objects not finding what i need.
I have some code to replace the current title block with a title block from a template file. I just don't like how it adds a new title block definition named "copy of titleblock". I'd like to delete or replace the current title block definition so only the newly added one is listed.
Sub test() Dim odrawdoc As DrawingDocument Set odrawdoc = ThisApplication.ActiveDocument If (odrawdoc.DocumentType <> kDrawingDocumentObject) Then Exit Sub Dim oTemplate As DrawingDocument Dim oSourceTitleBlockDef As TitleBlockDefinition Dim oNewTitleBlockDef As TitleBlockDefinition Dim oSheet As Sheet Set oTemplate = ThisApplication.Documents.Open(ThisApplication.FileOptions.TemplatesPath & "template.idw", False) Set oSourceTitleBlockDef = oTemplate.ActiveSheet.TitleBlock.Definition Set oNewTitleBlockDef = oSourceTitleBlockDef.CopyTo(odrawdoc) ' Iterate through the sheets. For Each oSheet In odrawdoc.Sheets oSheet.Activate oSheet.TitleBlock.Delete Call oSheet.AddTitleBlock(oNewTitleBlockDef) Next oTemplate.CloseEnd Sub
I'm just being picky at this point, but I don't want a buildup of title block definitions. We reuse drawings all the time which is why a simple method of updating a title block would be nice. I can just imagine in some years time after a title block update or two there are 20 "copy of copy of copy of .................. titleblock" listed in a drawing file.