AutoCAD 2013 :: Sheet Set - Adding Space To Default Custom Property
Jul 18, 2013
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.
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 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.
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 generated frame that has 100 members in it. Is there a quicker way of changing G_L unit to a mm so that I don't have to go into all 100 parts to change the custom properties? also I do not need unit string to be appear in my BOM.
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'm trying to set up a title block template that will be used between several different sheet sets. I have entered the custom properties, then when I go to the title block and try to insert the fields with current sheet set custom the drop down box is empty and then when I try to type in the custom property name the link still does not function. Is there some trick that I'm missing, or is this function broken on AutoCad 2013?
I clicked on Auto Hide in property palette settings, and now can't bring it back. I click on ribbon where is the property icon or type in command line, the property palette doesn't show up.Reinstalling program didn't work either.
after discovering zones and the space evaluation tool I wonder whether it is possible to customise the XLS output further by also reading out information from a property set attached to the space?
The office standard is to have a property set attached to each space that defines a room number (which is the level ID plus a number, say G-01), the area and the space name.
We used to simply schedule the areas with a schedule table. That only gives us net rooms, no subtotals per department (or say per flat) and no grandtotal.So we got as far as using zones grouping the spaces in each flat.
Now I need an area schedule XLT template that also displays the room number from the space's property set and the schedule grouped in a fashion that I get subtotals per flat (=my zones) in another column and a grandtotal.Playing with the Space evaluation tool I seem to only ever get Room/ zone names and their areas.
I'm using Corel Draw X5 and I can't figure out how to add or edit colours in the CMYK (default) Custom Colour Palette. In X3 and earlier versions it was quite easy to add new colours and edit existing ones. I would also like to know how to move the order of the colours in the palette so that I can put one a custom colour near the top.
FYI I would like make these changes to the master / global CMYK palette, not just the one for a specific document palette.
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".
How can I stack text in a custom sheet set property without editing custom properties and adding another line. The clients name is much longer than normal.
Just got the new 2013 version and I'm having this strange problem:
When I open a drawing (that was last saved in Paper Space) and I'm switching to Model Space, my view is not set to "Top" by default. How can I set my view by default to "Top"?
View of when I'm switching from Paper to Model Space:
"Top" View, what I'm supose to view by default...:
First, I have not grasped the extent yet of how the new appearance library works.. we don't get crazy with colors, reflections etc.. but we do have a handful of colors that we use on the machines we use.. so instead of using the default appearance library, i made a new appearance library. All this went well, but i periodically as i need them will add colors to it.. problem is that i'm obviously doing something wrong, because my colors don't always stay in there after i restart Inventor.. and yesterday, i can't seem to keep any of the colors i setup in there to stay.. all i want to do is copy specific colors from inventors appearance library.. drag them into mine, rename them, maybe tweak the color, and then they be there for next time.. why won't they stay?
The edit pencil will come up on my library.. i've done the release edit after i'm done.. everything works in this inventor session, but if i turn inventor off and back on again.. they are gone.. only thing i have thought of remaining is that 3 users on our network share the same design styles location so we all our using same stuff, so is the file inventor uses in design styles to save to read only or something, but i read that appearances aren't saved in design styles.. How to do this and the colors stay and populate through all the existing stuff.. I have got the colors to lock into my template ipt in the doc appearances.. and i've done the save to custom library thing.. works until i restart inventor..
I have an older drawing with an outdated sheet format. I'm wanting to update to a new custom sheet format without having to redimension and recreate views. Is it possible to just update the sheet format?
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 draw property plats for a surveyor and looking for a way to add the bearings (for example: N 56 15' 32" E) along the property lines. Right now, I use the Distance command to find out the bearing, write it down, and then add it to the aligned linear dimension text. I'm guessing there's a faster way to get a bearing along with the distance without typing it in.
I have created a space with space generater, added a room tag. When I click on the room tag and click properties I do not have Property Sets from Referenced Objects under extended data. How do I add this? I drawing I did about a year ago has this, but the curent project does not and I do not remember how I managed to get this info to appear.
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....
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?
When inserting a content center part for which we have to choose a material, we would like to have a custom material as a default (material with name: "No material selected"). So when selecting no material for this part (for example when the user forgets to select a specific material), the default material (in this case material "No material selected") will be active. In this way, we can see in one view across the BOM which parts have no material assigned yet.
How can this be achieved in the content center (editor)?
Product Design Suite 2014 Inventor 2014, Vault 2014 HP Workstation Z220 Intel Xeon 3.4GHz 16GB RAM Nvidia Quadro 4000 Windows 7 Professional (64bit)
I am trying to find a way to programmatically move our AutoCAD room tag attribute data to new AEC space property sets. I work in a hospital that has approx. 1 million s.f. and over 3000 rooms. Obviously a daunting task to do room by room.
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?
I am trying to create a property definition that will display the elevation of a space object. I looked through the automatic properties and did not find anything that looked like the elevation.
I have tried the following but was unable to achieve any success.
RESULT="--" On Error Resume Next Set AcadApp = GetObject(, "AutoCAD.Application") Set Obj = AcadApp.Activedocument.Objectidtoobject("[ObjectID]") RESULT = Obj.elevation
That formula does work if i swap elevation with say height, width,length or any of the properties found in the automatic property list that are a single word. I know the elevation is there I just don't know how to access it.
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.