AutoCAD Inventor :: Condition Involving A Range Between Two Values?
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
ADVERTISEMENT
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
Feb 28, 2013
I am using Civil3D 2011 and have a need to create an assembly that will take one of three options, depending on the tie-in condition points (e.g., the end of a link, not the beginning). As far as I can tell, Civil3D can discriminate which sub-assembly to choose based on conditions at the link starting point (e.g., if the start point is 2' of fill, it will select sub-assembly A; if the start point is 2' of cut, it will use sub-assembly B, etc.). However, I have a condition where the cut/fill conditions at the assembly start point have little to do with what I want the subsequen sub-assembly to do.
For simplicity's sake, you can imagine my "existing conditions" (2D) section as a flat-bottomed, U-shape with vertical sides (i.e., a trench); it's bottom width can vary.For the time-being, let us consider one side of an assembly in a fill condition only. Imagine that I want to satisfy design constraints but limiting fill quantities is a second priority; in instances when the bottom width is small, I would want the assembly to catch the existing trench with a 2:1 sideslope fill (or in Civil3D speak, a cut, because it would be upwards), so my finished surface is a now a V with the vertical faces above it. That works fine and dandy for a "trench" a few feet wide; however, imagine if that trench were 100s of feet wide - a 2:1 side slope would be a lot of fill for a ditch. So rather, I would want to "embank" the ditch - 2:1 side slope up (cut) to define my ditch XS, a horizontal link over to "embank" it, and then a 2:1 side slope down (fill) to catch the flat-bottom of my trench. So as you see, both situations have the same "Cut/Fill" condition (starting point) but drastically different end results.
View 9 Replies
View Related
Aug 4, 2008
Is there a way to select pixels in Photoshop based on given Lab values? I am using Select --> Color Range with a specified "fuzziness" threshold, but I'd rather make the selection based on specific Lab values instead of random pixels that I choose with my eye dropper. Is there a way to do this in Photoshop, or does anyone know of a plug-in that might do this?
View 6 Replies
View Related
Aug 14, 2013
I trying create simply macro for my work. It is mass rename for *.ipt files and their iProperty.And i need create condition "IF" for this (example 2 files):
4-1903-01 Pachole.ipt -> iProperties-Summary-Subject = nothing
4-1903-02-01 Dachole 2.ipt -> iProperties-Summary-Subject = "4-1903-02" (first 9 symbols)
How to do it? Maybe find first symbol "space"
Public Sub UpdateDocs()'JDK 2013' Include REF to Microsoft Scripting Runtime Dim oApp As Application Set oApp = ThisApplication Dim oDoc As PartDocument Dim oPropSet As PropertySet Dim FSO As New Scripting.FileSystemObject Dim oFld As Scripting.Folder Dim oFile As Scripting.File Dim Path As String Dim sTitle As String.
[code]....
View 1 Replies
View Related
May 16, 2013
I have the following code to clean up iProperties in idw files.
If ThisDoc.Document.documenttype=12292 Thendoc = ThisDrawing.ModelDocumentiProperties.Value("Project", "Revision Number") = doc.PropertySets.Item(1).Item("Revision Number").ValueiProperties.Value("Project", "Part Number")= ""iProperties.Value("Project", "Description")= ""iProperties.Value("Summary", "Title")=""iProperties.Value("Summary", "Subject")=""iProperties.Value("Summary", "Author")=""iProperties.Value("Project".
[code]....
For some reason, when this code runs, it always trys to execute the doc=ThisDrawing.ModelDocument, regardless of whether or not the IF statement condition is true. I am running Inventor 2012, SP2
View 2 Replies
View Related
Sep 25, 2013
I am in the process of translating existing VBA code into VB.NET, and I just ran into some issues regarding how to interpret VBA's GOTO in VB.NET. In the VBA, the programmer has the code written thus...
Public Sub addTag()
Dim ptStart, ptEnd As Variant
Dim annotation As Object
[Code].....
Without the while loop, single execution works perfectly. But the while loop to emulate multiple (recursive) execution raises some issues.
My problem occurs during execution of my VB.NET code, and has to do with display of the generated entities after the user picks points.
User picks the start point, then picks the end point, but nothing is displayed in the modelspace; rather, user is prompted immediately to pick start point and end point all over again (because of the while loop I used to emulate VBA's GOTO).
However, once user presses ESC, all the leaders and blocks that were drawn during the execution of the while loop are immediately displayed.
Is there a way for me to make it so that EACH time the while loop executes, the end product is IMMEDIATELY displayed in modelspace at the end of EACH loop, BEFORE the user is prompted to pick points all over again (beginning of the next loop)?
The VBA code executes as expected during runtime, as a result of the GOTO StartAddTag line of code.
But I can't use GOTO in my VB.NET code because of its messy nature, so I used a while loop instead. And the while loop isn't performing as expected.
View 6 Replies
View Related
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
View Related
Nov 25, 2013
Getting UV Parameter Range for the Face Object
View 3 Replies
View Related
Aug 17, 2010
How I can put the above mentioned Sub-Assemblies in a CUT condition? They all default to a Fill condition (Attachment Point at Top of Wall). I need it to have the attachment point at the Bottom of wall. I cannot seem to find where to do this?
View 5 Replies
View Related
Dec 27, 2007
from a satellite image cut OUT and discard the lake surface with intent to use the remainder as a 'layer' to over-lay a created image underneath...
I suspect this is quite simple...but trying various permutations of the question via 'Help' has so far not allowed me to unlock the secrets...
View 1 Replies
View Related
Dec 23, 2013
how to design a group in a query condition in AutoCAD 2011 MAp 3D I have
Property: LAYER = CP*
AND (Data: CIRCUIT.CIRCUIT = BRN22
OR Data: CIRCUIT.CIRCUIT = BRN21)
I woudl like to get this into vb.net?
also, in vb.net when creating a new data condition....do I need to use datacondition.Table and Datacondition.Column? Im unsure what these mean?
View 1 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
Jun 5, 2013
I have an open cut area with 8 meter height and a bench of 5 meter for the first 3 berm, on the 4th berm the bench will become 10 meter. Is there any way to build it in assembly? I attached 2 drawings to clarify the problem.
View 1 Replies
View Related
Apr 8, 2012
I like to create a daylight assembly with following criterias
Fill/cut Condition
1. Target to surface 2.5% slope
2. If the surface is not met within 19 m from centreline, then till 19 m 2.5% slope and 33% slope afterwards till it hit the surface.
Civil3D 2012
View 2 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
Jul 23, 2013
I would like to get a tattoo involving Eddie from the cover of Dance of Death. How to remove everything in this picture except Eddie and the black/white/yellow design on the floor.
View 9 Replies
View Related
Dec 13, 2011
I use PaintShop Pro v. 11.20 at work. I was using it as normal one day, and it crashed. This is nothing new, the crash is because I tend to have a lot of programs open at the same time and I had not rebooted my computer soon enough to clear the RAM. The problem occurred when I reopened the paint shop after rebooting, and all commands involving the control key (copy/paste, etc.) as well as the delete key do nothing. Very occasionally, it will allow one of these commands to work, but this is now very rare. If I have an object selected, the highlighting will blink briefly as it does when you try to copy it, but otherwise does nothing. I can still use these commands from the drop-down menus. I think this is probably just some random bug that happened when it crashed for whatever reason. If I can avoid reinstalling that would be preferable, as I would have to have the disks mailed to me by the head office. I looked to see if there was some setting that would put things back to normal but could find nothing. I reset defaults, no change.
View 1 Replies
View Related
Jul 18, 2013
I have an attribute blocks and this att block has two tag values , is there a simple code for to change 1st tag values automaticly according to 2nd values ?
for example :
1st tag (50x50) - 2nd tag ( 100 ) ==> 50x50-100
if i enter 201 valuse to 2nd tag then 1 st tag has to change as 100x100
if i enter 501 valuse to 2nd tag then 1 st tag has to change as 150x510
I attached a jpg file for explain much better
View 9 Replies
View Related
Feb 2, 2013
I am trying to create a custom subassembly using SAC 2012 that will place a 1' deep ditch at the bottom of the slope in a fill condition. The trouble I am having is how to hold a consant 1' depth on the backslope and vary the foreslope since the daylight offset and elevation is variable depending on the slope of the existing ground. I need the attachment point to be the edge of the shoulder so it seems like a loop that varies the foreslope length would be required but loops are not allowed. I will also have the option to target a profile but I also need the ability to hold a constant ditch depth.
How to model this condition.
View 9 Replies
View Related
Jan 31, 2013
Does the 2013 subassembly composer include a way to include a condition based on LANE-OUTSIDE-SLOPE?
The figure below indicates the type of condition I would like to include (red arrows).
View 5 Replies
View Related
Apr 18, 2013
Is there a way to have no layer value set for the description keys. I set all the layers, and now I realize I'd rather set this to no layers (boxes are all unchecked). I'd rather see no value under the layer column, but there doesn't seem like a way to set this.
View 1 Replies
View Related
Dec 21, 2012
Can AUTOCAD sum values that are entered as text values? Attached is a table text whose right final values should be all sumed up? Is this possible inside AUTOCAD?
View 9 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 17, 2012
I'm trying to contrain the end points of 2 lines using iLogic. I know the end points but I cannot get the values into the SketchPoint object. The real odd thing is I can create the lines no problem. I tried it 2 different ways shown below. The first way gives me this error..."Object reference not set to an instance of an object.". The second says "Unable to cast COM object.."
Dim oTG As TransientGeometry
oTG = ThisApplication.TransientGeometry
Dim EntityEndPt As SketchPoint
EndPtX = 0 * 2.54
EndPtY = 3 * 2.54
‘Code Fails Here!
EntityStartPt.Geometry.X = EndPtX
View 5 Replies
View Related
Feb 12, 2013
I try to retrieve the values of an occurrence in an assembly document, same as when I click on 'Change size' (see the attachment).
I Know how to get key values (from list) from content center family member (Getting data from content center) but for the expression values (from user entries), I found nothing.
View 1 Replies
View Related
Jan 3, 2014
We use several different classes of steel such as A572-65 or A572-50 etc. Any way to add those values in Inventor 2014 without having to reinvent the wheel?
View 3 Replies
View Related
Aug 26, 2013
how to create actions using the new condition statements - tried google nothing step by step with examples.
I would like to crop an image to suit then have it resize vertically to a set size then stroke it with a colour of your choice (would stop and ask you to pick a colour from the image) then save it. Before conditions I made one but if the image changes the ratio of width to height during the crop it fails. Also of course before conditions it uses the colour for the stroke that I chose when making the the original action. BTW I don't have a document portrait option, document square and document horizontal only.
View 1 Replies
View Related
Sep 6, 2013
I'm using Inventor 2013. I created an assembly where I did a lot of top down modeling (meaning components in the assembly were created in the assembly. All but a handful of the components are adaptive to other components). When I went to make my drawings for having the components made, I started noticing that some of the dimension values were wrong. I could go into the model and verify the features, but when dimensioning on the drawing it would not match. Furthermore, this didn't occur on every dimmension on the drawing. Not even half of them were incorrect, but it only takes one to really mess up a part.
I've attached a screen shot of what I'm seeing. The 15.2 and 5 dimmension are correct, but obviously those don't add up to 31.37. I know I can manually override this dimmension, but only if I know to do it. I tried to do a drawing of another part in the same assembly and eventually found a similar problem.
Finally, I created a step file of the 1st part (to strip away the adaptivity) and when I created the drawing again, the problem went away.
My question is, is there something I did in the assembly / creation process that would have caused this?
View 4 Replies
View Related
Nov 2, 2011
Is there any way that values in BOM columns would automatically change depending on the characteristics of the part?
Example:
I have a parametric metal rod that depending on its length has a different part number assigned to it in our company's catalog.
When I change its length in parametric assembly (50" rod is has different number than 70" rod) I want the part number to change as well in the "part number" column.
View 5 Replies
View Related
Jun 18, 2012
is it possible to add into parts list or into BOM values of frame angles?
Unfortunately, Inventor (I use Inventor 2013) does not offer this property by default in parts list settimgs. There are mass, file name, designer, project, status, vendor etc) but nothing about cut angles...!
P.S. I add JPG file with example that I need to get.
View 7 Replies
View Related