Monthly Archives

You are here: Home » 2014 » May

Mass Element Elevation in a Property Set

Posted by  | Categories: Autocad MEP, Property Sets

 

Recently a question was asked on the AutoCAD MEP forums about how to put the elevation of a Mass Element in a property set definition when neither the location or the elevation was available as an automatic property.  You can view the original post here.  Since this was very similar to a post that was covered previously on this blog it was an easy solution.  First I created a new property set definition that referenced a mass element and then added the automatic property definition OBJECTID.  Once that was complete I created a new formula definition and added the following code.  Make sure to replace the [OBJECTID] in the code below with a reference to the automatic property!

 

On Error Resume Next
DecimalPlaces = 8
Set acadApp = GetObject(,"AutoCAD.Application") 

'ACADVER values:
'MEP 2010 = "18.0s (LMS Tech)" 
'MEP 2011 = "18.1s (LMS Tech)"
'MEP 2012 = "18.2s (LMS Tech)"
'MEP 2013 = "19.0s (LMS Tech)" 
'MEP 2014 = "19.1s (LMS Tech)" 
'MEP 2015 = "20.0s (LMS Tech)" 

acadVerString = acadApp.ActiveDocument.GetVariable("ACADVER")

'Set ACA application string, based on version running: 
Select Case acadVerString 

	Case "18.0s (LMS Tech)"  'MEP-2010 
		aecBaseVer = "AecX.AecBaseApplication.6.0" 

	Case "18.1s (LMS Tech)"  'MEP-2011 
		aecBaseVer = "AecX.AecBaseApplication.6.5" 

	Case "18.2s (LMS Tech)"  'MEP-2012 
		aecBaseVer = "AecX.AecBaseApplication.6.7"

	Case "19.0s (LMS Tech)"  'MEP-2013 
		aecBaseVer = "AecX.AecBaseApplication.7.0"

	Case "19.1s (LMS Tech)"  'MEP-2014 
		aecBaseVer = "AecX.AecBaseApplication.7.5"

	Case "20.0s (LMS Tech)"  'MEP-2015 
		aecBaseVer = "AecX.AecBaseApplication.7.7"

	Case Else 
		aecBaseVer = "Unknown" 

End Select 

If aecBaseVer = "Unknown" Then 
	RESULT = "Unknown Version"
Else
	Set aecBase = acadApp.GetInterfaceObject(aecBaseVer)
	aecBase.Init acadApp
	Set MassElementObject = acadApp.ActiveDocument.ObjectIDToObject([ObjectID])
	Set UtilityObject = aecBase.ActiveDocument.Utility

	' Get the Normal of the Object and break down into individual X, Y, and Z parts
	MassElementObjectNormal = UtilityObject.ConvertToVariantArray(MassElementObject.Location)
	NormalX = Round(MassElementObjectNormal(0), DecimalPlaces)
	NormalY = Round(MassElementObjectNormal(1), DecimalPlaces)
	NormalZ = Round(MassElementObjectNormal(2), DecimalPlaces)

	'Return the results
       RESULT = Cdbl(NormalZ)


End If

 

Download Sample Drawing

 

 

 

Copying AutoTag Settings from Release to Release

Posted by  | Categories: Autocad MEP, Fabrication For AutoCAD MEP, Sheetmetal

 

If you are like me then you have spent alot of time setting up your AutoTag settings so that your ductwork is tagged the way that you like it.  While not 100% perfect the AutoTag functionality of the EastCoast CAD/CAM addin can save you an incredible amount of time during the documentation process of your design.  So what do you do if you want to move the settings to another pc or migrate the settings to a more recent version of the software?

AutoTag Manager

Rectangular Duct in the AutoTag Manager

Luckily this is as easy as copying a single file from one location to another.  First you open up your My Documents folder and navigate to the EastCoast directory and then open the Fabrication For AutoCAD MEP 20XX that corresponds to the version that you are currently using.  Find the tags.xml file and copy and paste it into the version of the software that you would like to use the settings in.   Please note that some versions of the software use the same version of AutoCAD MEP so you will not have to take any action when upgrading the software.  For instance, V6.0 and V6.1 both run inside of AutoCAD MEP 2014.  So the Fabrication for AutoCAD MEP folder will be the same for both versions!  This means that your settings will automatically appear.  However, if you are upgrading from V5.2 to V6.0 or V6.1 then you will need to migrate your settings.

You can also use this same procedure to copy the settings from one PC to another PC.  You will just have to locate the appropriate folder location in the users My Documents folder.

 

Fabrication For AutoCAD MEP V6.1 - Column Reorganization in the PipeFittingAdd dialog

Posted by  | Categories: Autocad MEP, Fabrication For AutoCAD MEP, Piping

New in Version 6.1 of Fabrication for AutoCAD MEP in the Select a Part dialog box SELECT PART SIZE area, the visibility and order of parameters has been optimized to reduce the need to scroll to the far right to identify differences between fittings. Important information will now list on the first few columns, starting with Part Size Name, Connection Diameters, NamePerMfg, and so on. For example, for elbows, the Angle column has been moved up to the front.

PipeFittingAdd Dialog Column Reorganization

PipefittingAdd Dialog

This should allow you to find and select your pipe fittings much quicker and easier!

Fabrication For AutoCAD MEP V6.1 - Duct Status

Posted by  | Categories: Fabrication For AutoCAD MEP, Sheetmetal

 

New in Fabrication for AutoCAD MEP V6.1 Eastcoast has added a new classification called status.

Status Classification Dialog

Selecting the Status Classification on a duct object.

 

 

 

 

 

 

 

 

 

 

 

When a new EastCoast duct object is placed into your model this classification will automatically be set by the software to the status defined by your specification. This will allow you to create schedules that can quickly and easily select and filter your duct objects for scheduling.