AutoCAD Inventor :: ILogic Range Between Two Numbers Not Working?
Apr 3, 2013
I would like to use the if else parameter in iLogic to set up a range, but I'm not getting it right.
What should happen:
if the variable 'breedte' is:
- 0 up to 3800; thats OK
- 3800 up to 4000; thats not OK, use 3800 instead
- 4000 and up; thats OK
Therefore I wrote this script, but when I enter a number between 3800 and 4000 (like 3900), the MessageBox appears (thats good), but the size of my solid results in 3900, instead of 3800.
breedte = InputBox("What is the breedte?", "Hoofdmaten", "")Parameter("skelet.ipt.breedte")=breedteIf breedte <= 3800 Then breedte = breedteElse If breedte >= 4000 Then breedte = breedteElse If (breedte >= 3801) AndAlso (breedte <= 4000) Then breedte = 3800 MessageBox.Show("This breedte is not possible." & hoogte & vbCr & "The value of 3800 will be used instead.", "Problem message", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk) End If
View 2 Replies
ADVERTISEMENT
Jul 18, 2013
I have subroutine that retrieves a list of detail numbers in a drawing. Sometimes there are missing numbers. I am looking to find a list of any missing numbers.
Example -
(setq List_DN (list 1 2 3 5 6 7 10 11 12 17))
Missing numbers are - 4,8,9,13,14,15,16
I would like a subroutine to take the List_DN are return the following missing numbers as text
(Get_Missing List_DN)
return
4,8-9,13-16
View 9 Replies
View Related
Jan 9, 2013
I have a MultiValue Parameter that I want to populate using a named range from an embedded excel spreadsheet. I would like an iLogic solution if possible because I need other people to be able to understand the code without too much difficulty.
One of the sample snippets given allows access but not if the excel file is embedded.
'GoExcel.NamedRangeValue("Part_Width")
The code below works but not when using a named range.
' Load bearing housing typesMultiValue.List("parameter1") = GoExcel.CellValues("A1","A20")
Is there something I'm missing? I was hoping to use something like below
' Populate MultiValue Parameter from excelMultiValue.List("parameter1") = GoExcel.CellValues("3rd Party:Embedding 4", "Sheet", "myNamedRange")
View 2 Replies
View Related
Jan 29, 2013
The command for Creating Lines by Specifying a Range of Point Numbers makes 3D line segments. Is there an option to make a zero elevation polyline running through cogo points that are 3D (the 3D line segments occur even if the cogo points are set to flatten elevation)?
View 5 Replies
View Related
Feb 20, 2012
I am trying to link my parts list to a drawing however all balloons have different numbers.
I open the assembly and check everything out from vault I open my bom and change item numbers. When I get back to my drawing and apply for auto balloon I get completely different item numbers in my balloons. We just updated our software to a new 2012 version so it's maybe something with set up.
View 9 Replies
View Related
Aug 12, 2013
I have a rule in iLogic that I was testing as "Straight VB.Net" on various assemblies. It was working alright, but I was making some minor tweaks to eliminate errors. Now, all of a sudden, it is unresponsive. Completely. No errors, no "busy" symbol over my pointer, just nothing. I put in the line MsgBox("Begin") as the first line of the program to see if it was even getting into it, and still there is no response. I run the rule, and absolutely nothing happens. I tried writing it in iLogic instead, and that does make something happen. what might cause the VB.Net element of iLogic to stop working, and hopefully how to correct the problem as well?
View 2 Replies
View Related
Oct 5, 2013
Created in the template sheet metal rule. Why External ilogic rule is not working? User-valued parameter is created, sheet metal rule does not change.
name = ""For Each par In ThisDoc.Document.ComponentDefinition.Parameters.UserParameters If par.Name = "SMR" Then name = par.Name Exit For End IfNextIf name = "" Then Dim MyArrayList As New ArrayList For Each st In ThisDoc.Document.ComponentDefinition.SheetMetalStyles MyArrayList.add(st.Name) Next ThisDoc.Document.ComponentDefinition.Parameters.UserParameters.AddByValue("SMR", "", UnitsTypeEnum.kTextUnits) MultiValue.List("SMR") = MyArrayList Parameter("SMR") = SheetMetal.GetActiveStyle()End IfSheetMetal.SetActiveStyle(Parameter("SMR"))iLogicVb.UpdateWhenDone =TruePS:
View 2 Replies
View Related
Jan 16, 2012
I want to save my PDFs as All Colors As Black, but setting the option to 0 or 1 doesn't work, it keeps saving the PDFs in color. Here's the snippet of
If oPDFAddIn.HasSaveCopyAsOptions(oDataMedium, oContext, oOptions) Then
oOptions.Value("All_Color_As_Black") = True
oOptions.Value("Remove_Line_Weights") = False
oOptions.Value("Vector_Resolution") = 400
oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets
'oOptions.Value("Custom_Begin_Sheet") = 2
'oOptions.Value("Custom_End_Sheet") = 4
End If
What is wrong with the option in the second line (shown in red)? I've tried a few other variations of All_Color_As_Black, but I'm having no joy. All the other examples I've looked at either has that option set to False (0) or that line is commented out .
View 4 Replies
View Related
Jul 31, 2013
So the other day I set up an external rule and created an event trigger to run the rule on save. It worked great ... for a couple days, and then it just stopped working yesterday. I can still run the rule manually and it works fine, but it doesn't seem to run automatically anymore on file save. Yes, iLogic is set to Loaded / Automati in the add-ins panel.
(on the iLogic rule attachment, remove .TXT from the end. I had to add that due to the board's rules about file types.)
Product Design Suite Ultimate 2013, 2014
Autodesk Inventor 2013
Work: Dell Precision T1600 (Xeon E3-1280 / 16GB / 512 GB SSD / 250 GB (Internal) / 1 TB (External) / Quadro 600)
Home: i7-4770k / ASUS Z87-Pro / 16GB / 250 GB SSD / 1 TB HDD / 3 TB USB3 HDD / 2xRadeonHD 4870 in CrossfireX
Laptop: Toshiba Satellite P755-S5269 (i7-2630QM / 8 GB / 250 GB SSD / 750 GB HDD / GT540M)
View 9 Replies
View Related
Aug 7, 2013
Why does this not work ?
sub main()
code .....
oView1 = oSheet.DrawingViews.AddBaseView(oPartDoc, oPoint1, 1/1#, kFrontViewOrientation,kHiddenLineDrawingViewStyle)
end sub
but this does ?
code.....
oView1 = oSheet.DrawingViews.AddBaseView(oPartDoc, oPoint1, 1/1#, kFrontViewOrientation,kHiddenLineDrawingViewStyle)
View 1 Replies
View Related
Feb 1, 2013
When I put a row deep enough in a form, i.e. under several groups, tab groups, or other rows, the rows stop working properly.
Inventor 2013 SP 1.1
View 9 Replies
View Related
Jun 2, 2013
I have found some code which extracts the part number from the iproperties of a model and adds it to the custom iproperties of a drawing but this will only work on iam or ipt files.
Here's the code, I added the lines referring to the docment type as an attempt to fix the error but it didn't work...
If (ThisDrawing.ModelDocument Is Nothing) Then ReturnIf ThisDrawing.ModelDocument.DocumentType = kPresentationDocumentObject Then modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)End IfIf
[Code]....
View 2 Replies
View Related
Oct 30, 2013
I created few families then loaded into project when i placed them all one of the type was not visible in Level view.
View 2 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
Jun 20, 2011
Is there a way to sync callout numbers to correspond with note numbers. When I add or delete notes in my drawings it takes to much time to update the callout number in the drawings. I need to figure out a way for the note and corresponding callout to change at the same time.
View 6 Replies
View Related
Jan 18, 2012
I have to choose 1 of three views in a drawing using a range of values like:
if ..........<10 then
ActiveSheet.View("VIEW1").View.Suppressed=False
else
ActiveSheet.View("VIEW1").View.Suppressed=true
[Code]....
The syntax that is in red upstairs gives me a error... What is the proper syntax to do this condition involving a range between two values???
Autodesk Factory Design Suite Ultimate 2014
Autodesk Simulation Mechanical
Autodesk Simulation CFD
Windows 7
View 4 Replies
View Related
Nov 25, 2013
Getting UV Parameter Range for the Face Object
View 3 Replies
View Related
Jan 15, 2013
How do you divide a segment equally with a range in visual basic?
example-
length is 144 in
range- 7.5 - 9in
answer- (18) at (range 8 in)
like to know how to do this in Visual Basic so I can create some rules and forms in iLogic
View 3 Replies
View Related
Nov 20, 2013
I have a Multi-Value Parameter "MV" that I want to populate using a Named Range from an Excel file that is already populating other parameters for the same file.
I currently have the file working by populating "MV" by using the snippet from iLogic below...
MultiValue.List("MV") = GoExcel.CellValues("filename.xls", "Sheet1", "A2", "A10")
The reason I don't like this method is because if ever that range changes... all the iLogic code will have to be updated as well. How to set a Multi-Value Parameter using a Named Range from an Excel file? I assumed the below snippet would work but I am receiving
"Array was not a one-dimensional array." as an error.
MultiValue.List("MV")=GoExcel.NamedRangeValue("Named_Range_Value")
View 4 Replies
View Related
Jan 5, 2014
Curious, I am trying to get numbers 'engraved' (extruded) into a diameter of a dial ring. I was able to create a couple of planes to create the marking lines around the OD, but am unsure how to add numbers and extrude said numbers (in the easiest fashion possible). I need to go from 0 to 90 on the longest marking that starts at 0° and is every 36°.
Also, that being said, with the little I tried and was unhappy with, I created a text box at the 0° marker but the text was in the wrong rotation the marker and rotation box was greyed out. How can I resolve this...or is it even related?
File attached.
----------------------
Inventor 2014 PDS
View 2 Replies
View Related
Aug 29, 2013
I have an assembly made of three parts. There is ilogic in place to rearrange these parts in the assembly. The part numbers change depending on how the puts are arranged and there length. The part numbers come up fine in the assembly ( i have a window popping up to show them). However when i open the BOM the separate parts are listed but not with there part number just with there file name.
View 9 Replies
View Related
Aug 15, 2012
I am putting balloons on an assembly drawing, but the circle is not appearing. The arrow, leader and number are there, but no circle. What could be wrong?
View 4 Replies
View Related
Jan 17, 2013
I have several sheets w/in a drawing. Some of the sheets are titled sheet 2A, 2B, etc. I'd like to be able to do this w/o needing several title blocks. what becomes sheet 3 is now sheet 5. How do I offset the sheet numbers?
View 2 Replies
View Related
Nov 22, 2011
I have an ipart but I can't for the life of me get them to be in order, small to big in the browser.
I have them in order in the table but they are mixed up in the browser.
Is there a way to do this.
see attached picture
View 4 Replies
View Related
Oct 15, 2013
There a few dodgy things goign on with my BOM.
I imported a BOM style from another drawing that worked fine, but when I edited the names of teh columns it broke everything again.
THere's a few thigns wrong.
There's no item numbers.
It says the QTY is incompatible units????
And there's teh funny table like icon with an arrow pointing to it with my parts highlighted blue. What does this mean?
Again, everything was fine until I changed the names of the columns and changing the naems back doens't fix it.
View 3 Replies
View Related
Jul 26, 2013
When I do a detailed set of drawings I first start with the overall and ballon the part showing the BOM. The following pages will reflect the detailed parts balloned on the first page. Is there a way, without haveing to manually type in the BOM, to reference which page this detail is on in the BOM?
View 9 Replies
View Related
May 15, 2012
I have a face plate with strokes on it to represent pressure increments.I cannot get the numbers onto the face plate.On the large stroke it starts at 0 and goes to 9 .. How do i add the numbers. Also i used extrusions for the increment strokes with circular patterns and mirror features.Is this how it should be modeled?
2013 EDU
View 5 Replies
View Related
Mar 13, 2012
I'm currently learning Inventor and going through the tutorials. At present I am learning about drawings. For some reason the scale (e.g 1:1) and dimension numbers do not appear in the drawings. I can see the arrows that make the dimensions but that is all. How to turn these on? I have tried every setting I can find but it appears that I can't figure this out.
View 1 Replies
View Related
May 13, 2011
How do I mirror a numbers of parts in an assembly.
There is a MIRROR icon but it's fuction is based on COPY.
I would like a MIRROR comand based on PATTERN not COPY.
View 2 Replies
View Related
Oct 5, 2012
I have several sketched symbols that I use with references to various properties embedded in them. Once of these is a sketch block that picks up the part number, description and so on. In order to get this to work, I place the sketch block and drag the leader to point to the part.
For assemblies the process clearly needs to be different. If I have various parts and assemblies shown on one sheet, how can I use a sketched symbol to pick up the ASSEMBLY number from one of the view.
Parts are fine (as explained above), but when I place a sketched symbol and do not attach the leader it picks up on the part number of the first component / assembly placed on the sheet.
I would like to have a sketched symbol reference a specific assembly, and list all its properties (i.e. part number, description, mass and so on).
Is there a way to do this? Please consider there could be more than one view on the sheet that has an assembly (or a part for that matter). I think I am looking for a way to link the sketched symbol to the assembly or specific view.
Windows 7 Pro (X64)
Intel(R) core (TM) i7-2600 CPU @ 3.40GHz
16.0 GB RAM
Nvidia Quadro 600
Autodesk Inventor 2013 Professional Ultimate Design Suite
View 1 Replies
View Related
Mar 1, 2013
How to etch numbers in sheet metal? Can I use text in an ipt and extrude this?
Is it possible to save as dxf with etch lines in a different color? I didn't find a possibility to change color in the Layer DXF Export Options or must this be done in Autocad?
View 5 Replies
View Related