AutoCAD Inventor :: Setting Color Of A Sketched Symbol
Dec 3, 2013
Why does a sketched symbol have a SetColor function even though it doesn't do anything? For example, this is "legal" code, but it won't do anything.
oSymbol.Color.SetColor(255,0,0);
On the other hand, this is the proper method to set the color of a sketched symbol (I could not find this anywhere in the api)
oSymbol.Color = _mInventorApplication.TransientObjects.CreateColor(255, 0, 0);
I want to fill the text box with white color so that the hatching in the views does not interfere with the text inside my text symbol.
as per my understanding this is not possible.. I thought of an alternative-- draw a rectangle instead of text box but was not able to find a way to make it fit to the length of the text. Note that : the text will be varying and so the text length.
is there a way to explode a sketched symbol??? what i would like to do is place a sketched symbol with text from a custom iproperty, once placed it loses the link to the custom iproperty and is just dumb text.
I have imported a sketched symbol of 3rd Angle Projection symbol, however, it changes the centrelines to normal lines when placed in the template. Is there away round this problem?
While editing and updating my idw drawing, somehow a sketched symbol disappeared. I really don't care about that. But this sketched symbol had a hatch in it (a fill actually) and this fill seam to be painted on my drawing right now. I can't select it, so i can't delete it. The only way it vanishes, is when i delete the whole view, with all of the dimensioning etc. i put on it. Anyway got a clue how to delete this hatch without deleting my view?
Adding a leader by checking a box when inserting a sketched symbol. My problem is regarding the leader start point. Can we change the justification of the leader or text, so it does not finish centered on my text? I want the leader to connect outside the text box to correspond to our presentation standards.
I have a symbol that gets placed in a certian location on a sheet. If the sheet changes size i would like the symbol to relocate itself. Usually i could just find it, delete it and replace it but this one is different. It has 16 prompted entries that may have been populated by the user.
Easy option=Be able to move the symbol.
Difficult option=Load 16 prompted entries into the a dynamic array and replace save the symbol in the new location.
I did some reading on attributes, would adding an attribute to the sheet location allow the symbol to move with it.
I have created a sketched symbol for use in a drawing and inserted the symbol into my drawing. My user defined symbol appears in the symbols list but I cannot seem to delete it. How do I now delete this user defined sketch symbol from my drawing?
Product Design Suite Ultimate 2013 64-bit HP Z400, Intel Xeon W3550 3.07GHz 12.0GB RAM, ATI FirePro V4800 (FireGL) Anthony Goodwin ~ Cad Manager/Senior Designer Autodesk Inventor Professional 2013 SP2 64-Bit Edition Windows 7 HP Z400, Intel Xeon W3550 3.07GHz 12.0GB RAM, ATI FirePro V4800 (FireGL)
I would like to use a multi-value custom iProperty 'item_finish' in the part or assembly model to drive an iLogic rule.
'item_finish' would be 1-24 from the list.
The part file would have an embedded spreadsheet with column A corresponding to the 'item_finish'.
The spreadsheet would have column B containg long text descriptions of the finish process.
The ilogic rule must take the 'item_finish' number, find the corresponding row and then return the B column cell text to a user parameter 'defined_finish'.
The 'defined_finish' parameter can be called in a sketched symbol to describe the finish.
It appears this is all possible, but I cannot find enough information describing the snipped code requiremnets to accomplish the goal.
I am trying to create a sketched symbol on the fly that has custom properties in it. I am also creating the custom properties on the fly. I need to get the actual expression for the property into the sketched symbol not just a value. I need this so that I can export the drawing as an autocad .dwg that has attributes in it.
How can I delete one Sketched Symbol from my Drawing ? It wont be in use in any sheet, i just need to delete it and the recreate with my code, so by this way the symbol is updated.
The other part of the code is created already, just need this part to delete. I found some ways but just delete the symbol from the sheet, not the source symbol. How can i delete it then ?
I trying to insert a symbol with a leader but i have a error message after de step 6, with this code?
the code
' Set a reference to the drawing document. ' This assumes a drawing document is active. Dim oDrawDoc As DrawingDocument oDrawDoc = ThisApplication.ActiveDocument [code]......
On a multi page drawing, I want a sketched symbol to placed on a upper right hand side, “For BOM, see Sheet: X” to be placed on every sheet except the sheet where the parts list available on the drawings. Also the Sketched symbol prompted entry automatically filled up with the sheet number (Parts list page).
I'm using two small (JPG)images in a sketched symbol. But when I place the sketched symbol on a drawing, with another scale than 1 : 1, the images won't scale with it. For example, the images will remain outside the sketched symbol when scale is 1 : 2.
How can I make sure the images inside the sketched symbol scale with the symbol?
Product Design Suite 2014 Inventor 2014, Vault 2014 HP Workstation Z220 Intel Xeon 3.4GHz 16GB RAM Nvidia Quadro 4000 Windows 7 Professional (64bit)
We have created 100's of drawings with inserted sketched symbols that has text which has been formatted with the font RomanS. Now that we have switched to DWF published documents, the font prints very light compared to Tahoma.
I was able to obtain all the text styles programatically and update the style to Tahoma. Unfortunately, updating the style does not effect text becuase the text was originally overriden to not use a text style.
Is there anyway via API to update the text in a sketched symbol to point it back to a Text Style?
Is it possible to attach a sketched symbol to a leader note? I tried the following code, but an error occurs in the line adding the sketchedsymbol. The geometry intent, which seems to be created correct, isn't a valid input for the sketched symbol.
Private Sub AttachSketchedSymbolToLeaderNote()Dim oDrawDoc As DrawingDocumentSet oDrawDoc = ThisApplication.ActiveDocumentDim oLeaderNote As LeaderNoteSet oLeaderNote = oDrawDoc.ActiveSheet.DrawingNotes.LeaderNotes.Item(1)Dim oSketchedSymbolDef As SketchedSymbolDefinitionSet [Code] ........
Is it possible to get the symbol preview sticking on mouse cursor while my own insert sketched symbol command is active? Is this a special cursortype or how to realize this?
When i edit the sketched symbol "Work Stages", i copy the line which the the arrow points at, but with it goes the green insertion point, and i can't delete it.
I'm currently trying to automatically cycle through all the parts in a given assembly within a drawing and place a sketched symbol at the COG of each part using C# (Visual Studio Express 2010 with Inventor 2012). The main code snippet is as follows:
//'Sketch Symbols SketchedSymbolDefinition symDef = oDoc.SketchedSymbolDefinitions[1]; int i = 1; while (i <= oBOMRows.Count) { BOMRow oRow1 = oBOMRows[i]; ComponentDefinition oCompDef = oRow1.ComponentDefinitions[1];
[Code] .....
I've tried several routes, but this is my basic approach. I feel like I am missing some GeometryIntent or something of that nature as the Sketched Symbols are showing up at the correct position but they are not associated with the given part (I've attached a screenshot of what is currently happening - the wipeouts you see should be displaying a property in them that is associated to the part). I also do not want the leader to be visible.
Is there any built in option for a symbol to have a pull down pick list of options? I know that you can make it have a prompted entry, but can you do a sim idea with a pick list?
I want to have a template IDW containing sketched symbols representing various possible drawing status stamps; when the drawing is ready for publish I want to run a rule which allows selection of one stamp for insertion on the drawing. how to copy the symbol from the one drawing to the other. Here is my non working
'Query stamp insertion requirementquestion = MessageBox.Show("Do you want to insert a stamp?", "Stamp Requirement",MessageBoxButtons.YesNo,MessageBoxIcon.Question)If question = vbYes ThenDim strSelectedStamp As String = "Result2"Dim strStampList As New ArrayListstrStampRequired = TruestrStampList.Add("F&C Stamp Round")strStampList.Add("As-Built Stamp. [code]..
I get a 'The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))' error.
With iLogic, define some pre notes and when the user choose one option some notes are chosen too.The idea now is: Create a text direct inside on Sketched Symbol OR edit some textfields inside the Symbol.
The symbol could be one existent, so its not necessary to create it.
I got a code to create the text, and that works perfectly! Just what im trying now is create this text into the Symbol... I've tried many ways with reference from: URLs....The code to create the tet im usnig is this one:
' a reference to the drawing document. ' This assumes a drawing document is active. Dim oDrawDoc As DrawingDocument oDrawDoc = ThisApplication.ActiveDocument ' a reference to the active sheet. Dim oActiveSheet As Sheet oActiveSheet = oDrawDoc.ActiveSheet ' a reference to the GeneralNotes object Dim oGeneralNotes As GeneralNotes oGeneralNotes = oActiveSheet.DrawingNotes.GeneralNotes Dim oTG As TransientGeometry oTG = ThisApplication.TransientGeometry ' Create text with simple string as input. Since this doesn't use ' any text. [code]....
but, if i could just edit one existent text filed into the symbol would be great too and one "extra doubt", in all the codes that i get here, i have to erase the "public sub" and the "set" from all code, am I doing something wrong ? I'm running directly from the iLogic window.
I have been given the task of figuring out a way to have etching placed on our parts to show the part number of the part. The end goal is to get the parts laser cut but have the part number etched into the part.Is there a way to convert text (i.e. 12345) to a sketched symbol that the punch feature would recognize and then add it to the library? Right now we are using 2012 but will be upgraded to 2014 within the next 6 months.
We've got a sketched symbol that locates to the center of holes on a part.Problem is, the symbol either doesn't recognize the hole's center and even if it does, the center of the symbol (the designated insertion point) jumps to the edge of the hole.I've even recreated the symbol and I get the same effect.