AutoCAD Inventor :: Editing Prompted Entry Values With ILogic
Dec 11, 2013
I have been attempting to automate some prompted entry (PE) values using iLogic and the SetPromptResultText command.
The command works on the customer-supplied template I have if I create a new PE called <DELETEME> - my code also works on this new PE even if I delete the "<" & ">" from either end of the string so it becomes "DELETEME".
The command doesn't work on the customer supplied fields of "PURPOSE OF ISSUE" & "PROJECT REF No" but if I add < & > to either end (so they become "<PROJECT REF No>" & "<PURPOSE OF ISSUE>" respectively) and modify my code to look for that instead, lo and behold it works.
why it works with the "<" & ">" on the ends of the string but not without?
My guess is that the "<" & ">" allow the PE to have spaces and without it Inventor 2013 throws the dummy in the dirt and refuses to play nice! - Just tested that theory and it's clearly cobblers.
Here's the sub-routine I wrote (with the working "<" & ">" still in place):
Sub UpdatePromptedEntries(oDoc As DrawingDocument)'assumes the oDoc is activatedDim oPromptEntryDim actSheet As Sheet = ThisApplication.ActiveDocument.ActiveSheet'For Each oSheet In ThisApplication.ActiveDocument.SheetsFor Each oSheet In
[code]........
View 4 Replies
ADVERTISEMENT
Feb 9, 2012
I am using Inventor 2012. I want to put a label with a prompted entry. So I did this,
SCALE: <scale>
However, when filling out the symbol it only puts in the scale without the label. The reason I am doing this is because my text is right justified and I need the label to move with the text.
View 6 Replies
View Related
Aug 26, 2013
I use a CommandManager.Pick command to select my drawing view and i want to put information of this view to a prompted entry in my sketched symbols, i have many same symbols in my page and i want to put a different description for each symblos but with a same prompted entry name, ex.: <NAME>
View 7 Replies
View Related
Jul 12, 2007
have default text for a Prompted Entry in a Border. I have not found a way to do this other than creating a custom iProperty, which is not an option, since it is not our title block / border.
View 9 Replies
View Related
Aug 12, 2009
I'm trying to set up some new title blocks, I have some "prompted entry" Properties that I want to incorporate, I've got them in the title blocks OK but I can't seem to get em to return a default value, the prompts are all coming in blank when the dialog box comes up. I have set the defaults to what I need on the original ANSI template with the new title block, but when I create a new drawing using that template, the title block comes in without any values set. Is there a way of setting them to return a default value initially that you would change if required, I'm sure I'm missing something very basic!!
Also, in the 'edit property' fields dialog box, there does not seem to be a way of inserting symbols into the value field, have I not turned on the right variable, or missed have I something else??
View 9 Replies
View Related
Sep 14, 2013
When creating a title block I use iProperties and Prompted entry.
Now I want to place all entries and properties in a form so that I have everything together.
With the iProperties it works because you can select the iproperties when you create the form but I can not select the prompted entry to place in the form
Is there a way to select the prompted entry to place in the form?
View 2 Replies
View Related
Oct 17, 2013
Is it possible to write multiple prompted entry fields down in a single pass? As it is now, you can see the taskbar reporting as it writes down each line.
Essentially i've got 6 different fields i'm trying to write down using code like shown below:
If oTB.GetResultText(oTitleBox1) <> Me.Title1.Value Then Call ThisApplication.ActiveDocument.ActiveSheet.TitleBlock.SetPromptResultText(oTitleBox1, Title1.Value)End IfIf oTB.GetResultText(oTitleBox2) <> Me.Title2.Value Then Call oTB.SetPromptResultText(oTitleBox2, Title2.Value)End If
Just wondering if there's a way it can be written down in a single pass to save time or if it's a limitation of prompted entry text.
View 2 Replies
View Related
Aug 27, 2013
How could I read / change prompted entry through code from title block (for example DIN) within VB.Net?
View 3 Replies
View Related
Apr 9, 2013
First, it requires there to be a prompted entry text box in the title block named <SCALE>, is there any way to write to a textbox that is not prompted entry? The prompt when a new drawing or sheet is created is misleading and makes users think they need to manually fill out the prompt. Secondly, this code works on multi-sheet drawings but it concludes by making the last sheet active. Since we are triggering this rule before save it's a nuisance to have the drawing switch sheets everytime you do a save. Ideally, the current active sheet should remain active when the rule runs. Here is the
For Each oSheet In ThisApplication.ActiveDocument.Sheets
ActiveSheet=ThisDrawing.Sheet(oSheet.Name)
If oSheet.TitleBlock Is Nothing Or oSheet.DrawingViews.count=0 Then Exit Sub
oTitleBlock=oSheet.TitleBlock
oTextBoxes=oTitleBlock.Definition.Sketch.TextBoxes
[code]....
View 1 Replies
View Related
Dec 11, 2012
I have a section of code (see below) which runs a program which highlights a part/subassembly red, then gives the user a list dialgue box in order to easily replace the compent. At present, I have this code repeated for each part/subassembly in my main assemby (i.e. FRAME, POWER_RISER, BUSBAR_CHAMBER, BUSBAR_ASSEMBLY...).
Having the code repeated multiple times, means it is very time consuming to modify. I want to be able to generate a list then have the code below, run for each of the entries in the list. So I need something along the lines of
dim mylist as something
mylist = FRAME, POWER_RISER, BUSBAR_CHAMBER, BUSBAR_ASSEMBLY...
FOR each entry in mylist
run all the code below (with the words 'BUSBAR_ASSEMBLY' replaced with 'mylist'
END
[Code] ........
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit
View 3 Replies
View Related
Feb 20, 2013
I have an iLogic rule that populates the fields shown below in our title block. The DIM. Values are strings set with H,W,L values. This works well, but I have an additional need to sort these values in ascending order, so the smallest value is first followed by the next largest and finally the largest value. (4.000x5.000x14.000). I haven't had much luck finding any information about how this can be done. I did however come across some code here that someone else was using for a similar feature.
Dim sizes As New List (Of Decimal)sizes.Add(bH)sizes.Add(bW)sizes.Add(bL)sizes.Sort()D1 = sizes(1)D2 = sizes(2)D3 = sizes(3)
This is what I have been attempting, though it does not work. I get the following error "Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index". I'm not sure if my list type is correct (Decimal), but no matter what I choose it fails. The (bH,bW,bL) are the actual block dimensions pulled from the .ipt file. Once sorted I want the values of each position (1),(2),(3) to be assigned to (D1),(D2),(D3) so I can place them in my title block in the correct order.
View 3 Replies
View Related
Jan 6, 2011
Is there a way to set the colour of a part using the RGB value? (or perhaps the hexdecimal value?)I know I can set colours in iLogic by specifying an existing colour (ex... iProperties.PartColor = "Green")
I want to avoid adding the colour to Inventor as a custom colour, then referencing it in iLogic... The goal is, if a user specifies the finish on this part to be this colour, it will always be that RGB value (our standard in-house paint colour). I don't want to add it to the Inventor 'colors' design data... when we upgrade to the next version of Inventor, it's one more item we have to remember to carry over!.
View 5 Replies
View Related
Mar 6, 2012
Ok what I'm tring to do is have a spreadsheet that has a list of prices in it that we could modify if needed for all these parts i'm making. Best way is to have the spreadsheet obviously external of the file.Though now I do not know how to do this in iLogic.And example of what I'm trying to do is, with 3 parameters.
A, B, and P
Value "A" and Value "B", these are just read items which when combined will give Value "P" to be imported into the Part file. So need A & B to be read and give the row number for P to be imported.
View 3 Replies
View Related
Oct 29, 2012
Macro for writing the sheetmetal Extents width and length to the custom properties. I need to get these values into the part parameters so that they can be used in the BOM.
I can get this to work if I manually create the "SM_Length" user parameter, but how do I make the iLogic CREATE the parameters if they do not already exist? I think it would be something added below the "Catch..." just cant seem to figure out what it needs to be.
'look for custom iproperty and try to set it
Try
iProperties.Value("Custom", sExtLength)=Round(SheetMetal.FlatExtentsLength, iRoundValue)
Parameter("SM_Length")=Round(SheetMetal.FlatExtentsLength,4)
Catch
' assume error means not found and create it
customPropertySet.Add(Round(SheetMetal.FlatExtentsLength,iRoundValue), sExtLength)
EndTry
View 9 Replies
View Related
May 19, 2013
I have one problem in ilogic i developed the model using ilogic rules and dimension values updated through the User interface form.
problem is while entering the values in UI, model updates automatically, but I want to stop automatic update and after entering the all the parameters in the UI then click the done button only update the model.
My UI is like this
It's possible.
View 3 Replies
View Related
Aug 5, 2011
I am animating a polygon mesh with bones using a CAT rig. Whenever I go to the Curve editor in order to change the Frames or Values in the Key Entry: Tack View, the tangent button icons start to flicker and I'm unable to type in a value with the keyboard for about 15-30 sec until the flickering stops.
Never the less the mouse functions are still given and I can manipulate the tangents manually, but it's especially frustrating when I want to set the Global or Local Weights of the CAT rig to 100% or if I want to work proper.
I have the SP1 and HF2 for 3DS 2012 installed.
System Spec:
Windows 7 Ultimate; 64 bit; SP1
Intel Core i7 950 @3.07GHz
12 GB RAM
NVIDIA GeForce GTX 470
So, I'd like to know if it's an issue with the program/version or the hardware.
View 1 Replies
View Related
May 30, 2013
I'm struggling a little with editing strings in iLogic. I have sets of part numbers that vary in length, but I'd like the part number to appear in another custom property with the last 6 characters trimmed off.
e.g.
Part Numbers: 12345_WXXXX
123456789_WXXXX
123_WXXXX
Desired Values in custom field: 12345
123456789
123
I can write a line of code that keeps the last 6 characters but I can't get it to trim off the last six, because I don't know how many characters will be in the code before the last 6.
View 4 Replies
View Related
Aug 18, 2011
Is it possible to create something like a password or other trick to protect ilogic rules from editing? Ilogic can enforce standards but if any engineer can delete rules or edit them then we have a problem.
View 4 Replies
View Related
Jul 3, 2012
I left site, we are as building structures. When I id the current info, I have x and y co-ordinates but z values are 0, and when I try edit the z value it wont allow me to apply the new level .
View 8 Replies
View Related
Jul 25, 2013
I am trying to create a template and want all of the revision material to show on all the sheets but the prompted entry that I have put into the template makes me re-enter it every time I change sheets. Is there any way to have it flow through onto all of the sheets instead of having to re-enter all the information.
View 1 Replies
View Related
Apr 25, 2013
The title blocks that we use have prompted entries in them and I would like to find a way using iLogic to copy the entries from one title block to another within the same drawing; i.e.. if the user decides to change from an A2 to A1 drawing.
I already have an iLogic rule which allows the user to change the active border, title block and sheet size based on a form selection but would like it to capture the prompted entries already entered and re-use them after the change.
View 1 Replies
View Related
Feb 4, 2013
Usually I use the TextBoxes. But its text would not change.
How to use vb.net to add a prompted text into the definition of a sketched symbol?
View 2 Replies
View Related
Apr 10, 2013
I'm trying to unskillfully crash my way through writing a VBA program for modifying Inventor drawing border info, and have managed through cannibalizing other programs to achieve 95% of what I wanted (ie the iproperties part).
Prompted Entries via VBA..I'd like to create a sync 'Prompted Entries' from sheet 1, across all sheets button.
The 4 prompted entry fields are always..I'd love some VBA code that could read the above 4 Prompted Entry values from Sheet:1 and then sync these values across multiple drawing sheets within one .idw file if more than one sheet was present.
View 3 Replies
View Related
Nov 6, 2013
I would like to make a split balloon where the top retrieves the item number and the bottom is a prompted text area. Is this possible?
If the above is not possible my fallback plan would like to make a sketched symbol function in exactly the same way. I believe this option would be significantly more code. If I have to go this route, is there a way to directly mimic getting the item number like the balloon function does?
--My current process involves attaching a user symbol, getting the proper leader node, attached entity, geometry, model geometry, containing occurrence, and then BOM of the component occurrence. Keep in mind this doesn't work for phantom or reference components.
Win7 x64 - 16gb ram
i7 3610qm
FirePro M4000
Inventor 2013
ETO 6.1
View 4 Replies
View Related
Nov 27, 2013
I use prompted entries in the title blocks in some sheets in my drawings. I then use iLogic to fill in the prompted entries. Is there a way to turn off the prompted entries box when I create a new sheet?
Is there something other than a prompted entry that is not linked to a file (drawing, part, or assembly) that can be placed in a title block and filled in with iLogic?
View 6 Replies
View Related
Nov 8, 2011
Create a Content Center Part that prompts for a file name and sets the Part Number to whatever I save the part as? It would also be nice to... Have the browser Display name the same as the saved filename.
If I have a standard part with a blank filename, inventor will make the part number equal the filename at the first save. It is this functionality that I require when using Custom Content parts.
E.G. If I have a length of 'RHS 200x100x6.3 - 2000mm' selected from content centre and I want the filename to be saved as 'Part-001', then I would like the Part Number to be set as 'Part-001'.
If I then place the same member in another project/assembly I may want to call it 'ProjectPart-100', where the part number would then be 'ProjectPart-100' and so on.
This method ignores the filename entry in the Ipart table.
View 1 Replies
View Related
Apr 22, 2012
In the Preferences - External Editing options the resolutions are set as 240 for CS5 and Additional Editor, should I leave these at 240 or change them, and if I change them, change them to what value for best quality?
View 2 Replies
View Related
Apr 27, 2012
I'm trying to add to a right click menu for an Inventor addin using C#. I'm basing mine off of a VB sample. However, it appears VB allows the add command to be missing values, whereas C# will not allow any empty values.The 3 commas in a row are where the error occurs. C# error is simple "argument missing".
ControlDefinitions controlDefs = m_inventorApplication.CommandManager.ControlDefinitions; ButtonDefinition m_featureCountButtonDef = controlDefs.AddButtonDefinition("Add symbol", "symbolAddition", CommandTypesEnum.kQueryOnlyCmdType, "{DFJMQC00-938F-11E1-AFAA-.
[code]....
View 1 Replies
View Related
Aug 19, 2013
how can I close an iLogic Form from either an iLogic Rule, or a VBA Rule (VBA is the Preferred method)?
View 5 Replies
View Related
Jan 29, 2013
I am going to be saving a template with one of my custom frame profiles from the content center already placed in it. I'll place it say 100" long, just an arbitrary number. How can I create a dialogue that pops up when I open the template file, it asks me for the value of 3 variables, then changes the length of my content center frame rail to the sum of those 3 variables? I've seen pop-ups before and know how to set the rule, I'm just not sure how to change the parameters..
View 5 Replies
View Related
Aug 30, 2011
The only thing that has changed since Friday is the install of SP1. I use the old dialog boxes instead of the mini-toolbars (don't get me wound up). I just noticed yesterday some strange behavior when I change the value in the dialog box.
In the example in the attached screenshots, I started the fillet command and selected edges. The default fillet was ".3" and I want to change to ".4375". As you can see in the image, at one point while typing, Inventor decided to highlight the entry again, and as you see overwrote the ".4" with "375".
I'm checking other dialog boxes now but so far all I know is the fillet dialog box. Also does it on the value of a variable fillet too.
Inventor 2012 Pro, Windows 7, 64bit
Intel® Xeon® Processor W3580 (8M Cache, 3.33 GHz)
12 GB DDR3, NVIDIA Quadro FX 3800
View 9 Replies
View Related