Revit :: Renaming Existing Parameters - Assembly Code?
Dec 22, 2011Is there a way to rename the Identity Data Parameter- Assembly Code?
View 3 RepliesIs there a way to rename the Identity Data Parameter- Assembly Code?
View 3 RepliesIs there any way to delete or rename door parameters that show up once a door is loaded into a project but do not exist in the actual door family? I have made two shared parameters called "Frame Material" and "Door Material", and my schedules and tags are working properly with them... but when I select a door's properties there are two "Frame Material"s (one I did not create and cannot delete) and an extra "Finish" that I do not need now that I have my shared parameter.
View 3 Replies View RelatedThis lsp was passed on to me from a colleague but he doesn't know where he got it. It does a useful procedure of placing each xref, residing in the drawing, to a unique layer. The layer name is derived from the xref name. I would like to edit this to take only part of the xref name. This system I work with requires all files to have the job number as a prefix eg LE1399901_Contours.dwg, so the xref name would be LE1299901_Contours by default. I want to remove the first 10 characters to be left with "X_Xref-Contours" layer name using this code.
(defun dxf (i a) (cdr (assoc i a)))
(defun c:lxr ( / ss cnt xrs en ed bn xp xbn )
(setq ss (ssget "x" '((0 . "INSERT"))))
(setq cnt 0)
[code]........
The following code crashes with an exception at the point where I try to rename the extrusion feature:
CComPtr<ExtrudeDefinition> pExtrudeDef;
hRes = pListOfExtrusions->CreateExtrudeDefinition(pProfile,kCutOperation,&pExtrudeDef); pExtrudeDef->SetDistanceExtent(_variant_t(kHeight),kSymmetricExtentDirection);
[Code] ......
Is it possible to rename an extrusion feature. If so what is the method to do it?
Is there anyway of re-naming an existing block without creating a new one? I made a rookie mistake of naming my blocks with names containing spaces i.e. 'block A' and 'block B' and have found that some routines like replace block won't work because of it.
View 3 Replies View Relatedit is possible to make a constraint that utilized a parameter of a part within the assembly.
For example, if I wanted to use the thickness of a plate, which I defined in the part, could I call that parameter in a constraint?
I'm looking for the best way to create a separate assembly out of various component parts in an existing assembly so that the whole thing can be placed in an assembly as you would a part, I know it's possible to demote components within an assembly but are there any other methods similar / better ?
View 2 Replies View RelatedI work with Inventor 2011.
It is possible to sort Parameters (user parameters) by code (simulating a click on column header) ?
I'm currently using Inventor 2012 and i need a macro (code): I want to know if it's possible to export all the information from the parameters list (everything, names, values, tolerances, comments...) to an excel spreadsheet or a txt file (it can be a table, or a CVS file, i just want that information!), from a part file (.ipt) or a drawing file (.dwg).
Currently, i can only export the parameters' names and values , but i can't get to the tolerance values and comments . . .
When I go into the materials tab to duplicate and rename a material, Revit crashes. I enable to duplicate the material fine and if I do not want to rename it, everything goes okay. As soon as I rename the material and click okay, Revit quits working and needs to close.
I'm using Revit 2013 and I have all of the current updates installed.
I created a short 3 minute video of what exactly happens.
[URL]
Duplicating and renaming a material, if I try to change the characteristics Revit also modifies the original material.
View 2 Replies View RelatedIs there a way to modify the existing Parametric Parameters that are in the Parameters Manager using LISP?
View 2 Replies View RelatedNow I want to know how to exclude derived parameters of an assembly and of occurrences in this assembly.
View 6 Replies View RelatedI need to use parameters of a part in an assembly. How to do this? Do i need to define a rule? How is this done?
Can i do it without using an Excel sheet as a parameter source for both the assembly and the part? The target is to have inventor update an array of assets as soon as the width of a part is changed whether in Excel or in the Factory properties of the asset.
what is the procedure for linking ILOGIC rules? There has to be some way, either they are both called from a VBA or VB.NET program.
i want to update parameters in an assembly, then write out the updated IDW to a DWG and/or PDF, then update the parameters, write out etc.
I have both the Rule working in the IAM and the Rule working in the IAM, i just want to call them sequentially.
I have a master layout (ipt), from which I've created derived parts, that get put together in an assembly. I'm able to pass parameters from my master part to the derived parts, but I don't seem to be able to pass parameters from the derived parts to the assembly. Is this possible?
View 9 Replies View RelatedI know that in Inventor 2011 you can add text to your IDW and insert numeric parameters from Parts in an Assembly, BUT what I would like to do is insert parameters that contain text. Ideally I would to just pull the parameters from from the Assembly and place them as Text in the IDW.
I can pull the parameters from the Assembly into the IDW using iLogic, but I still can't insert them in text.
I have assembly file in which I have created a work plane "Work Plane19" . Now I wanted to create a new work plane which will be paralle to workplane "WorkPlane19" & offset by 10.5 mm in same assembly document through VBA subroutine. I have tried with following code but getting error,
Public Sub NewWorkPlaneCreate()
Dim oAssly As AssemblyDocument
Set oAssly = ThisApplication.ActiveDocument
[Code].....
I try to develop a vba code to get the coordonates of each part of an assembly and after export them to an excel file.
I build this :
Public Sub Export_Layout_COG()
If MsgBox("Cette Macro va exporter les coordonnées du COG de chaque layout, continuer ?", vbYesNo) = vbYes Then
Dim RefDoc As Document
Set RefDoc = ThisApplication.ActiveDocument
Refdocdisplayname = RefDoc.DisplayName
[Code]...
The code return an error on the red line, I don't catch why?
I have design tree like this:
Main Assembly
L Sub Assembly1
L Sub Assembly 2
L Sub Assembly 3
L part 1
in part i have a parameter name ("Panjang")... how to control "Panjang"?. I cannot access a part parameter in Sub-assembly.
[URL]
How can I drive parts from an assembly level without using Excel spreadsheets. I know it is possible using iLogic to do it, but I can't figure out how to do it "automatically".
For example, we would like to drive a conveyor roller without the use of a spreadsheet. I figured out I could simply insert user-driven parameters in the top-level assembly and drive the parts with the parameters in the assembly, but it is telling me it would cause a cyclic redundancy, so I cannot do it this way, then I thought about iLogic.
It is currently working OK, but I have to enter in the iLogic rule to manually change the filenames in the rule for it to work.
Why? Mainly because we use a prefix to our parts and we sometimes use Autodesk Vault, sometimes not (depending on the project).
Here is my example;
I have a part named "Tube.ipt", "Bearing.ipt", "Spring.ipt" and "Tige Hexagonale.ipt" along with this code in the assembly level (Rouleau.iam):
Parameter("Spring:1", "GAGE") = WIRE_SPRING
Parameter("Spring:1", "DE") = OD_SPRING
Parameter("Spring:1", "LONGUEUR") = LENGHT_SPRING
Parameter("Tube:1", "LONGUEUR_TUBE") = RL-Parameter("Bearing:1", "EPAULEMENT")-Parameter("Bearing:1", "EPAULEMENT")
Parameter("Tige hexagonale:1", "LONGUEUR_HEXA") = RL+B+B
Parameter("Tige hexagonale:1", "BOSSE_SPRING") = B+0.010 in+Parameter("Bearing:1", "EPAULEMENT_SPRING")+LENGHT_SPRING+WIRE_SPRING
Parameter("Tige hexagonale:1", "BOSSE_BEARING") = B+0.010 in+Parameter("Bearing:1", "EPAULEMENT_SPRING")
As you may see, I would have to change "Tige hexagonale:1" every time we use this assembly on different project for it to update properly. I would like to automate it a little bit more.
How to make it work in iLogic:Search for something that has "Tube" in it's filename in this assembly, then store it into a variable called "Tube" Repeat this step for "Spring" and "Tige" Then replace "tige hexagonale:1" by the variable or something like this...
I am trying to control the parameters contained in a part that is not in my assembly. May sound odd, but I am using the multi body part modeling feature to create all of my bodies in a single part file, then making these components/sub assemblies, and pulling them into my assembly. However, I do not want to have the "control part" in my assembly, I just want it to drive the parts. I cannot figure out how to access these parameters without having the part included in the assembly...
View 7 Replies View RelatedI have the following problem. I design a simple part - an extruded base, so i have a parameter in this part that i can control the extrusion distance - i call this parameter D.
Then i create an assembly and place the part in it. How can i access the parameter D of the part from within the assembly?
I want to place multiple instances of this part in my assembly and control each parameter D of an instance using an excel worksheet that is linked with the assembly. How can i do it ?
My aim is to design a very simple manipulator. Each link has the same shape but a different length. I want to control each length from an excel worksheet and not from an ipart table. I want to have only one worksheet that controls the parameters of my assembly such as constraint angles , and link lengths.
I am attempting to reverse engineer a Slap Chop for a school project. Being only an amatuer at Inventor, I have made several parts that need to fit together but don't due to erronious measurements. Attached are three of the parts I have so far, and I will make a few replies with the remaining parts. I am trying to make an excel sheet or some table where I can manage all my parameters and have them update in the parts. The table is simply to make it easier for me to quickly check my dimensions.
View 6 Replies View RelatedIf I have parts in an assembly that would like to use the same parameter, what is the best way to do this? I am using AI 2013. Currently I know how to create a base part and using it to derive other parts from it, but this seems there should be a easier way, is there?
View 1 Replies View RelatedI want to make a vba code to calculate the Interferences between all parts of an Assembly.
First I modify all holes with thread. Next with de CommandManager I Launch the AssemblyAnalyzeInterferenceCmd. And finaly I modify all holes with thread back.
My question is :
How to wait until the AssemblyAnalyzeInterferenceCmd is finished to continue the code.
Sub Interferences()
Call BeforeAnalyzeInterference
ThisApplication.CommandManager.ControlDefinitions.Item("AssemblyAnalyzeInterferenceCmd").Execute
Call AfterAnalyzeInterference
End Sub
I have created an assembly containing several parts. I want to export several text parameters of the assembly and parts into the i properties of the corresponding idw so that I can use them in a text block.
View 4 Replies View RelatedI am working in one assembly. in that assembly i created all the part with using i part & same part i called in to the assembly & created i assembly. while creating drawing i have facing problem to show the model parameters in to the assembly drawing table. How to link the model parameters in assembly parameters with using i assembly.
View 1 Replies View RelatedMy goal is to open have people go into a central assembly file, type in their specific parameters and the various part files update within the assembly. I wish to do this without the need for an excel sheet, but when I try to link the parameters from the assembly file to the part files, it will not allow me to insert these parts. I get an error about an "assembly can not be placed into itself."
Iparts will not work as this has an infinite amount of sizes.
Is there a way to work with parameters on a suppressed assembly using iLogic.Everything works fine, but when I suppressed a part ilogic rule give me an error: Parameter: The component named "xxxxx:1" was not found.
View 1 Replies View RelatedIs there a standard command or command sequence that allows for the changing of a parameter, say length, of a component from within an assembly. I'm looking to compile a code that allows for a template to be created, then that template will do changes based on text box input and then save out the modified parts with new part numbers.
View 2 Replies View Related