Though now we are starting to use factory design suite... trying to figure out a way to well combine those blocks into the ribbon bar but having a issue with that.
For example I have a directory as such..
in the Family.xml file i need a string (<Family ID="FCAF6577-1DAB-4644-88AF-8BCE41E463A8">) which I need to make like this FDS_FCAF6577-1DAB-4644-88AF-8BCE41E463A8_Asset. This then needs to be the block name that will be inserted into the drawing. Now this tag changes for EVERY file and I want it to be automatic.
Now in my current code I have these items already setup.
This is the shortcut command for the code
Private Sub InitBottleButton(ByRef rb, ByVal strText, ByVal bmpImage, ByVal strToolTip)
rb.Text = strText
rb.Name = strText
rb.CommandParameter = "InsertBottleConveyor "
rb.Image = bmpImage
rb.LargeImage = bmpImage
rb.ToolTip = strToolTip
rb.CommandHandler = New AdskCommandHandler()
Here is the button command.
Dim rb1CS500 As New RibbonButton()
InitBottleButton(rb1CS500, "01M_Geruest_0500", getBitmap(My.Resources._01M_Geruest_050032_16), "Straight 500")
Now is there a way that I can change this to make a "new block" with the FDS_(code from file)_Asset?
Also the code setup as shown allows me to select the file click a location and rotates the block as I see fit, as well lets me choose if I want to select a point on the block for insertion point.