AutoCAD Inventor :: Editing Strings In ILogic

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


ADVERTISEMENT

AutoCAD Inventor :: Protect ILogic Rules From Editing?

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

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 View Related

AutoCAD Inventor :: Creating Strings For Tower Crane

Oct 28, 2012

I'm making a tower crane for a project and I need to have strings that are attached to the top of the tower and the end of the boom and another that attaches to the top of the tower and the rear boom.  I used the cable and harness tool, but it didn't seem to account for the presences of the cables I made when I ran a stress analysis, which I need to do.  

How would I create a string or an object that would function similarly?

View 1 Replies View Related

AutoCAD Inventor :: Create List Of Text Strings To Select From Defining Material Thickness?

Nov 7, 2011

Im trying to create a list of text strings to select from defining material thickness and then plug that selection into a global form custom iproperty called "MaterialDescription".. Also, is it possible to access and pre-enter field text edit items in iLogic?

View 3 Replies View Related

AutoCAD Inventor :: Close ILogic Form With VBA Or ILogic Rule

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

AutoCad :: Change Text Strings In Several Drawings

Oct 5, 2011

Using AutoCAD 2010.

Is there a way to change text strings in several drawings? A search and replace routine that would do several AutoCAD Drawings at once.

View 1 Replies View Related

AutoCad :: Sum Of Numbers In Text Strings But In Dynamic Block

Oct 19, 2013

How can one add numbers in text strings that are in seperate blocks or dynamic blocks with pull down menus? I can get a sum of numbers in a text string to add up, but once it is in a block or dynamic block with pull down menus they don't all add up.

How can one bcount dynamic blocks with pull downs?

View 0 Replies View Related

AutoCAD 2010 :: Remove Character Formatting For All Of Text Strings At Once?

Oct 30, 2012

I am working with tables that are linked to data from an excel file.After I create a table I dettach it from the excel file. I do not want the excel file to control the table.

I then need to update the text format of all the text in the table. I've noticed that the text strings are still formatted based on how the excel file was formatted.

The only way to remove this is to click on the cell, highlight the text, right click, and then select Remove Character Formatting. Unfortunately I have to do this for each text string.

Is there a way to remove the character formatting for all of the text strings at once?

Even better, is there a way to format the table so that it does not change the text style based on what is in the excel file but instead based on AutoCAD's text styles?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Selecting Text Strings Of The Same Value

Apr 22, 2013

A code that scans all through the drawing and selects the texts of the same value regardless of the layer, color, style, ...etc..

Just selecting duplicates for highlighting nothing more.

View 9 Replies View Related

AutoCad :: Global Attribute Edit - Changes All Text Strings That Match

Dec 1, 2011

I am jumping 8 versions to 2012. I've located this command but it changes the all text strings that match? I tried naming the block but that didn't work.

Gobal edit – Modify > Object > Attribute> Global. Command is –ATTEDIT –

a. Editattribute one at a time > enter N

b. Editonly visible on screen > enter N

c. Enterblock name specification > enter

d. Enterattribute tag specification > enter

e. Enterattribute value specification > enter

f. Enter string to change > enter text makingsure it is case sensitive

g. Enternew string > enter text

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Associative List With Strings And Spaces

Aug 16, 2013

I'm making a program that reads a property file that follows the format:

"key=value"  for each line on the text file.

One specific line has the key "file" and the value is some file path that includes a space.file=C:/my folder/my file.txt
 
Now I can extract what the key and value is for any given line in the file.However, I want to put all of the data into an Associative List so that I will not need to keep opening the file each time I search for information. I've been using the cons function in order to create a dotted list, which is successful.  However I have an issue when I add this dotted list to the end of my associative list.

Suppose I have a key and a value already stored inside variables.  Below I have two lines of code, first the dotted list portion is printed, and works as expected.  The second line adds that dotted list to the associative list:

(princ "Cons: ")(princ (cons key val)) (princ "") ;Prints (file . C:/my folder/my file.txt)(setq assocList (append assocList (cons key val))) ;Error message here.
 
The error that I receive says "; error: bad list: "C:/my folder/my file.txt"..Here is the change:

(setq assocList (append assocList (list (cons key val))))

 Now, the dotted list is inserted properly and looks like this after printing the whole associative list: ((version . 1.0.1) (file . C:my foldermy file.txt))

View 1 Replies View Related

AutoCAD 2013 :: Batch Erase Same Blocks And Strings In Multi-drawings

Oct 8, 2013

I have 200+ page drawings and need to open each dwg to erase same block and text strings. Any way to batch erase same blocks and strings in multi-pages?

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Convert List With String Or Lists Of Strings To Text

May 22, 2013

Someday the light bulb is going off and I will understand mapcar and lambda. However.....I have a program that reads an excel file sheets. Sometimes the sheet only has 1 column, sometimes 2 or more.

I need to convert the saved values from the sheet to a list with the text spaced evenly. Unfortunately the text lengths vary. I would like a subroutine to pass the list to and return a list of strings with text aligned with padded spaces allowing for the longest text in each column. I am using the new list in a dialog box with fixed_width_font=true (so columns align).

Example 1-

(setq List1 (list "Col1-Line1" "Col1-Line2" "Col1-Line3-longer" "Col1-Line4"))
(AlignText List1)
returns
"Col1-Line1"
"Col1-Line2"
"Col1-Line3-longer"
"Col1-Line4"

so no padding needed

Example 2 -

(setq List2 (list (list "Col1-Line1" "Col1-Line2" "Col1-Line3-longer" "Col1-Line4") (list "Col2-Line1-longer" "Col2-Line2" "Col1-Line3" "Col2-Line4")))
(AlignText List1)
returns
"Col1-Line1        Col2-Line1-longer"
"Col1-Line2        Col2-Line2       "
"Col1-Line3-longer Col2-Line3      "
"Col1-Line4        Col2-Line4      "

 Example 3 -

(setq List3 (list (list "Col1-Line1" "Col1-Line2-longer" "Col1-Line3" "Col1-Line4") (list "Col2-Line1-longer" "Col2-Line2" "Col1-Line3" "Col2-Line4") (list "Col3-Line1-longer" "Col3-Line2" "Col1-Line3" "Col3-Line4")))
returns
"Col1-Line1        Col2-Line1-longer Col3-Line1-longer"
"Col1-Line2-longer Col2-Line2       Col3-Line2       "
"Col1-Line3-longer Col2-Line3      Col1-Line3       "
"Col1-Line4        Col2-Line4      Col3-Line4       "

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Passing Excel Cell Content (Text Strings)?

Oct 23, 2012

How can I pass the contents of a cell value (text string) to Acad? I want the user to click on a cell, then have lisp use the string as the name of a block to insert.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Return A List Of Strings Of Layout Tabs In Drawing

Mar 6, 2013

(layoutlist) ... returns a list of strings of the layout tabs in the drawing.I've used this ages... Isn't it a core lisp function, or is it coming from express tools or somewhere else?

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Select Multiple Instances Of Text (dtext) With Different Strings

Apr 23, 2012

I am trying to select multiple instances of text (dtext) with different strings but want to change all of the fomats to the same settngs.  I have searched high and low on the web to no avail.  I am using AutoCAD 2012.

For example:  I want the routine to find all instances of "AA", "AB", "AC", "AD", "BA", "BB", "BC", "BD", etc... all the way up to "ZD".

Next I want all of those text entities to change to the following text formats:

Text Style = STANDARD_96Layer = F-ANNO-CKTText Justification = MIDDLE CENTERText Width = .8

Getting this to work with just finding one string at a time with the ssget function seems simple enough, but it's getting it to work with multiple strings that I can't get past.

View 8 Replies View Related

AutoCad :: How To Draw Cross Section Of Timber Winder Stairs As Strings Change Angle

Jun 1, 2012

Just learning 2D CAD and trying to draw a cross section of a timber winder stairs as the strings change angle (I think) at the winder section. Looking at 3nr winding steps.

Setting out a standard stairs is okay, so I have the floor to floor height.

View 4 Replies View Related

AutoCAD Inventor :: ILogic Design Copy - Error Copying A File / Inventor Crashes

Nov 5, 2013

I'm trying to use iLogic Design Copy to copy an assembly and all its associated parts to another directory. The assembly contains content center parts. Inventor warns me that the destination file of one of the CC parts (and 18 others) will be overwritten. When I go ahead and copy anyway, the copying process stops at that specific CC part. The Design Copy Progress dialog box states there is an error copying that CC part. When I close the Design Copy Progress dialog box, Inventor crashes.

The error copying the CC part: I'm allowed to use content center parts in iLogic Design Copied stuff, right? I searched some related topics and I'm under the impression that Inventor keeps the CC parts in its own directory and shouldn't be trying to overwrite them.

View 3 Replies View Related

Lightroom :: What Are Translated Strings Files

May 11, 2012

What are translated strings files?  Do I have to keep them? There seem to be lots!  As far as I see they are in foreign (to me) lanquages.  Can I get rid of them safely?

View 6 Replies View Related

Revit :: Adjust Length Of Tick Marks Used In Dimension Strings?

Jun 15, 2012

Is there a way to adjust the length of the tick marks used in dimension strings?  I'd like something other than the supplied Diagonal 1/8" or Diagonal 3/64" options.

View 1 Replies View Related

Lightroom :: Embed Long Text Strings To Image Metadata?

Mar 20, 2012

I would like to embed long text strings to image metadata, in order to copy and paste memories written and related to these images. As an example, I'm keeping a sailing logbook and I would like to add the daily entries to pictures but I have run into problems when sharing images elsewhere. The string length exceeds the metadata standard lengths.
 
Which standard metadata fields allow longest text strings that I could use for my logbook entries without the fear of losing them when exporting or sharing them elsewhere?

View 1 Replies View Related

AutoCAD Inventor :: ILogic Min Or Max?

Nov 13, 2013

I am doing a tie rod the issue I have is when the length is between 2.001 and 2.250 we would drill thru all but only tap the ends .750 deep. If the part is 2.000 would would drill and tap thru in one step and not have to rotate the part in the lathe.

How do I get ilogic to understand if my number is between this 2.001 and 2.250 to lengthen the drill length parameter?Or add a mid plane cut? ( trying now code below reflects this try)

 Not sure what way I want yet but I just can't seem to find a snippet or code to do this. I tried to add a list in the parameters for it to read but seems to do nothing.

If LENGTH <= "2" ThenFeature.IsActive("Thru_All") = TrueFeature.IsActive("Hole_A") = FalseFeature.IsActive("Hole_B") = FalseiProperties.Value("Project", "Description") = "RETURN ROLLER SHAFT, " & iProperties.Value("Custom", "DIAM") & " Ø S/S, TAP THRU 3/8-16, " & iProperties.Value("Custom", "LENGTH") & " LONG"ElseFeature.IsActive("Thru_All") = FalseFeature.IsActive("Hole_A") = TrueFeature.IsActive("Hole_B") = TrueiProperties.Value("Project", "Description") = "RETURN ROLLER SHAFT, " & iProperties.Value("Custom", "DIAM") & " Ø S/S, TAP BOTH ENDS 3/8-16, " & iProperties.Value("Custom", "LENGTH") & " LONG"End IfIf LENGTH = (My_List) ThenFeature.IsActive("Mid_Cut") = TrueElse Feature.IsActive("Mid_Cut") = FalseEnd If

View 2 Replies View Related

AutoCAD Inventor :: BOM XML Import Via VB Or ILogic?

Mar 8, 2011

Possible to run the 'import .xml structure' routine for an assembly BOM using either iLogic or VB?? I'm trying to replicate the Import button at the bottom of the BOM screen....

View 5 Replies View Related

AutoCAD Inventor :: ILogic Component Add

Jan 16, 2013

What I am trying to do is insert a part into an assembly file using iLogic. I basically want to mimic Inventor’s “Place” command using ilogic, maybe something like this:

oPath = ThisDoc.Path & ""
oFile = "File.ipt"
Component.Place(oPath & oFile, False)

View 1 Replies View Related

AutoCAD Inventor :: ILogic - Export DXF From DWG

Jun 20, 2013

This att. doc shows rule for exporting dxf out of drawing. It is working on one sheet just perfect. In multi sheets it save allways with same name. I want to choose from which sheet i need dxf but to be saved by sheet name or model properti name. Is that possible?

View 9 Replies View Related

AutoCAD Inventor :: ILogic DWF Merge

Aug 28, 2013

I have an external ilogic rule that creates a set of DWF drawings for all parts and subassemblies (as long as the idw files exist) within and including a main assembly.

I would like to merge all the DWF drawings of the sub assemblies and component parts into the DWF of the main assembly. Is there a method within DWFAddIn that will allow me to merge the files? Is there another way that I can merge the DWF files using the same ilogic rule (one rule to create and merge all DWF's together?)

View 3 Replies View Related

AutoCAD Inventor :: Extrusion Using ILogic

Aug 9, 2012

I have closed profile "Sketch1" placed on one of the parts in Assembly.

Suggest iLogic code to create cut Extruson (Extents=All) based on the "Sketch1"

View 6 Replies View Related

AutoCAD Inventor :: Set PDF Metadata Using ILogic

Jan 9, 2013

I´ve found some iLogic code to print a drawing to a PDF document. After some minor modifications it works just fine, but I would like to add some code which allows med to set PDF properties (such as "title", "author", etc.) with values from iProperties. How can I do that? Is it possible? (I'm new to iLogic).

View 6 Replies View Related

AutoCAD Inventor :: Managing LOD With ILogic

Jul 12, 2013

I use simple set of iLogic rules to manage product configuration through the assembly LOD. Assembly is really simple not more then 30-50 parts. Still I manage to crush Inventor fairly often. Some days 5 and more crashes! Several times sent crash report to AutoDesk for no joy. Never got any feedback. 

I am just getting an impression that Inventor does not like LOD manipulated with iLogic for some or the other reason.

View 5 Replies View Related

AutoCAD Inventor :: ILogic In Drawings

Dec 19, 2011

I am slowly learning about ilogic, and have created parts and assemblies that are run by rules. My next question is, what exactly can ilogic do for drawings? I've looked at the wikihelp, but I am not a natural at programming and I need more than a list of functions with brief descriptions to get me started.

I'm looking for code snippets, other discussions, tips, tricks, and/or tutorials to get info what I can do with ilogic and the API that can automate parts of the drawing process.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved