I need importing and exporting custom layer property filters. Long story short, we XREF a lot of mechanical equipment in our models and when we create a structural drawing make all of the mechanical item print in a light ghosted color. I created a layer property filter with a huge list of all the possible equipment prefix's like *cl-* *tk-* *rv-* and so on to filter out all the equipment layers. It took a long time to create, so I want to export it and import it into future drawing.
Is this functionality still available. I have seen several threads that mention it being available on some people layer manager, but I don't have it on either. See attachment. I remember there being a registry key you could add or change to the tools, but when I did that I always got two errors in drawings that would appear every audit.
I opened a drawing this morning that was sent to me by another office. I tried to open the layer property manager and it gave me a message that there were more layer filters than layers and that I should delete some of the filters. I said ok, but the property manager dialog box never opened. Now I can't open the layer property manager dialog box in any of my drawings.
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
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'm trying to import layer group filters from dwg to dwg. I know that this feature removed with Autocad 2005. I know i can import layer states, but layer states doesn't solve my problem. I tried "lfilterio" but it's not working.
how to make it, with or without a lisp routine. Or may be write one?
What is the layer "Status" in the layer property manager? It doesn't correlate with the On/Off or Freeze/Thaw . The icon appears to be a sheet of paper but some are blue and others are gray. I cant tell what makes them change colors from blue to gray.
My layer filters are not working on the ribbon, why and/or if this is an autocad bug.
I created one for hiding Xref layers, which is an inverted filter. it works on the "Layer Properties Manager" but does not work on my ribbon layer menu. If i turn on the old layer dialog it is working in there.
I know there are many differnt views about the ribbon so i dont need any of the comments telling me to turn it off and get on with it etc.
If you look at the attached images you can see the screen shots of my problem. Note that i have the layer settings correct. Autocad Help says that if the "apply filter to layer toolbar" is on then it will apply this to the ribbon. which it does not.
We have a number of standard layer group filters. We also have a utility that allows us to re-create our standard layers with the push of a button, making it easy to use the PURGE command to keep the drawings clean.
We have noticed that once we purge our layers out, the group filters are broken. After reinserting the standard layers, some of them show no layers, and others show all of the layers, neither of which is correct. It seems that once a Group Layer Filter no longer sees the layers it was set to include in the layer list, it forgets all its settings and becomes useless.
How can we continue to use PURGE without losing the functionality of our layer filters?
When using Inventor with Vault, we have a problem when categorizing custom content center parts in Vault. In short, custom content center parts are incorrectly categorized as "Content Center" and automatically released - as there is no property that we can use to identify these files.
I need iLogic code to trigger when custom content center files are created/saved, wich adds the following custom iproperty "IsCustomContentCenter=True".
It appears that the Layer Filters functionality is broken again with 2013. Unchecking the "Apply layer filter to layer toolbar" disables the function of layer filters in the tool palette.
But this does not work anymore. So I created this sub but it does not seem to work either.
Public
Sub subFindCustomParam(ByVal strUserParameter AsString) Dim infoDB AsDatabase =Application.DocumentManager.MdiActiveDocument.Database Dim infoBuilder AsDatabaseSummaryInfoBuilder = NewDatabaseSummaryInfoBuilder(infoDB.SummaryInfo) [code]........
I am trying to create a sketched symbol on the fly that has custom properties in it. I am also creating the custom properties on the fly. I need to get the actual expression for the property into the sketched symbol not just a value. I need this so that I can export the drawing as an autocad .dwg that has attributes in it.
I am mainly developing for AutoCAD 2013/2014 how to implement a custom property as a drop-down list using OPM and .NET/C# wrapper. I have successfully created categorized custom properties already and can read/save them in XRecords via the OPM. I further implemented the members for IDynamicEnumProperty (using an ObjectARX DLL) in .NET/C# which are:
And I have implemented the GetCurrentValueData() and SetCurrentValueData() members in my .NET/C# wrapper as per the IDynamicProperty2 interface as following:
public void GetCurrentValueData( Object pUnk, ref Object varData ) {AcadObject obj = pUnk as AcadObject; if ( obj != null ){using ( Active .Document.LockDocument( DocumentLockMode.ProtectedAutoWrite, null, null, true ) ){using ( var tr = Active.Transaction ){ObjectId ObjId = new ObjectId( (IntPtr) obj.ObjectID ); DBObject DbObj = tr.GetObject( ObjId, OpenMode.ForRead ); if ( DbObj != null ){try {if ( [code]....
This code compiles without error but instead of the expected drop-down list the OPM only shows a field where I can enter or edit integer numbers, but there is no drop-down list when clicking on the field....
The SheetSetObject has an inbuilt custom property called "TransmittalSetups", but the property has a different internal object structure compared to other CustomProperty
Ie:
[code]
Dim myPropEnum As IAcSmEnumProperty = myCPB.GetPropertyEnumerator Dim myPropName As String = Nothing Dim myPropValue As AcSmCustomPropertyValue = Nothing
myPropEnum.Next(myPropName, myPropValue)
[/code]
myPropName is a string, and in this instance it returns a value of "TransmittalSetups"
myPropValue.GetValue is a string, and it says "System.__ComObject" not a "value".
So my question is, how do identify this object, how to interigate it or assign it to its native object type.
I have tried to cast it to different IAcSmEnum types but without success.
I would like to set the custom property format for all user paramters from an iLogic code. This is what I've come up with. It runs, but it does not seem to alter the custom property format. What am I doing wrong here?
I am having trouble getting a field in a multi leader which is part of a block to reference a sheet set custom property. I have fields within mtext in paper space that are not blocked that are referencing correctly but just not in my blocks.
The company I work for produce drawings for various types of fabrication.
Using Inventor I have a drawing border in which tolerance values change depending on the type of fabrication to be produced. The type of fabrication (0,1,2,or 3) is designated by a custom property entered during part/fab model creation.
This property may change depending on various production factors. The issue I have is how do I get the border to recognize this potential change in fab type and populate the tolerance fields with the necessary information?
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.
My company has a custom property named 'Released date, Type Date.
This date is still empty
I am working on a rule that adds all the custom properties required for the company title block.
This rule can be useful whenever you get a model from a supplier.
I can add a custom property date using the following
Dim oDoc As Document = ThisApplication.ActiveDocument Dim customPropertySet As PropertySet = oDoc.PropertySets.Item("Inventor User Defined Properties") Try iProperties.Value("Custom", "Released Date") = iProperties.Value("Custom", "Released Date") Catch
[Code]...
This code works but sets the released date to Now.
But the release date needs to remain blank when adding.
I tried to make the value Null but I get the error:
"Value of type 'System.DBNull' cannot be converted to 'Date'."
Is there a way to keep a custom property date blank?
A drawing with hundreds of layers should be simplified for our customer by decreasing the numbers of and renaming the layers (there is yet no target file existing). In order to solve this, I generated group filters and assigned every single layer to them (all printing properties are assigned to objects). The layer groups show the desired layer structure after the transformation (still a three-digit number).
Unfortunately, the LAYTRANS dialog doesn't let me choose layers by group filters or remarks. It seems as all the work was for the birds.
Is there any way to translate my layers using filters or remarks?
you can match the layer filters with in the layer manager to the drop down on the ribbon..so how do i get the to match so the filter im viewing in the manager is what i see in the ribbon.
I'm having issues with Civ3d 2013. I pushed off upgrading from 2012 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 have seen 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 dont 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 wipeouts dont 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.
I'm tasked with setting up a new dwt file to be used along with the Sheet Set Manager.
I've got as far as adding in my own custom properties at both the Sheet Set level (things like project name, site name, etc.), and at the Sheet level (drawing title).
But more specifically, at the Sheet Level, I want to be able to facilitate having a multi-line drawing title. Things start to get a little cloudy.
In order to be able to control where the line breaks are, I've simply created 5 fields (3 for an odd number of lines, 2 for even), and I want to set their Default Value so they don't display anything, i.e. a space or blank of some kind, instead of the four dots. So when I want to add the title I go to the Sheet properties and change the value.
I thought it'd be as simple as adding the ASCII code for a space (U+00A0) into the Default Value, but that seems to display the text U+00A0 instead of the space.
I'm trying to see if I can write a rule that will link a custom property at the part level in a template and have it update when I copy the part and drawing to a new design. Below is the formula I'm using and it works in the original files but when I use Design Assistant to create a copy for a new design, this formula will not update.
I have a part number that i want to defined in custom properties.
Then would it be possible to call it out in Ilogic? that way in any drawing doesn't matter where the part number will always be the same for that part when i balloon and the same in the BOM.