I have a custom AcGiDrawable entity that I want to wrap in .Net. All this is done and compiles fine but when I try to instance the object I get the message "Cannot create an instance of the abstract class or interface '....'.
I have several custom entities (derived from AcDbEntity and AcDbObject) that aren't a problem, but for this one, problems arise.
C3D 2011. 64 bit. sp1 and sp2 installed windows 7 enterprise 64 csharp 2010 express
no problems referencing managed dot net libraries; already developed some working solutions..now I need to reference the COM libraries..when I try to reference the AEC Base 6.5 Application Library (program files ........ aecxuibase65.tlb) the response is error: cannot find wrapper assembly.I have tried:
1 - the registry edit from the api training session
2 - downloading the object arx sdk and referencing x64 dll's from there
My goal is to write a Drawable Overrule, which would change the entities color to dark gray, except when they are on a specific layer. For closed-only curves in this layer, I want to add a semi-transparent hatch.
All works great, until user moves the mouse over this hatch : AutoCAD throws a fatal error and closes. I've no exception in debugger...
When I remove the code concerning the hatch, I've no error at all.
Public Class ClosedCurveDrawableOverrule Inherits DrawableOverrule Public Const HighlightColorIndex As Short = 1 'Color Red Public Const BaseColor As Short = 251 ' Color DarkGray Public Const SpecificLayer As String = "Layer1" ' Set our transparency to 50% (=127) ' Alpha value is Truncate(255 * (100-n)/100) Public [code].......
I'm new here, as well as to script-fu, although I've looked into Scheme and Lisp and know how to program. I'm using Gimp 2.6.12 (the latest version on Linux - Ubuntu 12.04.2)
So, an overview of what I'm trying to do: create a simple clock face (black) with 12 solid white rectangles at the hour marks.
I have a single layer, (black background, white foreground colours), I select a circle, invert the selection and bucket fill.
Then I select a rectangle, fill it, rotate the layer (which cuts out the rectangle, creates a floating selection with it, and rotates that) anchor the flt-sel (and then repeat 12 times).
> (gimp-rect-select image 570 396 25 8 2 0 0) ; select rectangle (#t) > (gimp-bucket-fill layer 0 0 100 0 0 0 0) ; fills the selection (stays selected) (#t) > (gimp-drawable-transform-rotate layer (/ PI 2) 0 400 400 0 2 0 3 0) ; creates a flt-sel, but returns layer instead of the flt-sel(!?) ... (4) ; (also deactivates selection) > (set! fs (car (gimp-image-get-floating-sel image))) ; ... so have to get the flt-sel explicitly 26 > (gimp-floating-sel-anchor fs) (#t)
This kinda works, but doesn't feel like the optimal way to do it . What I was expecting to do is something like copying the selection, 12 x (rotate and add), bucket-fill.
When inserting a content center part for which we have to choose a material, we would like to have a custom material as a default (material with name: "No material selected"). So when selecting no material for this part (for example when the user forgets to select a specific material), the default material (in this case material "No material selected") will be active. In this way, we can see in one view across the BOM which parts have no material assigned yet.
How can this be achieved in the content center (editor)?
Product Design Suite 2014 Inventor 2014, Vault 2014 HP Workstation Z220 Intel Xeon 3.4GHz 16GB RAM Nvidia Quadro 4000 Windows 7 Professional (64bit)
When using Inventor with Vault, we have a problem when categorizing custom content center parts in Vault. In short, custom content center parts are incorrectly categorized as "Content Center" and automatically released - as there is no property that we can use to identify these files.
I need iLogic code to trigger when custom content center files are created/saved, wich adds the following custom iproperty "IsCustomContentCenter=True".
I have been using AutoCAD 2006. Our company is switching to AutoCAD 2012 LT. I want to be able to add my custom toolbar buttons from the 2006 to the 2012 LT custom Ribbon Tabs & Panels. I have figured out how to make the custom ribbon, tab and panel. I just haven’t figured out what I need to do to get the old stuff to where I can add them to the panels.
I have custom 2006 buttons with and without flyouts.
When I drag a previous custom command into an existing custom tool bar and edit the custom command (then rename the command in the Name and Command Name) it also changes the previous custom command that I originally drug into the toolbar. What am I doing wrong?
I am trying to create custom Materials in Inventor 2013. I have been able to create the custom appearances I want use on the materials and store them in the Inventor Materials Library.
After creating the custom appearance, Ive created new materials. When I try to change to new material appearance from default to my custom appearance, upon hitting the 'apply' button I get an error message which reads, 'failed to updated style'.
We are a firm using ACAD 2011 w/ a custom toolbar that has an Auto Purge "tool" it currently deletes duplicated layers, reg ops, duped scales etc. we are wondering what else it can do (or any other tools that may be of use) or how can we get it to do more for us, like restrict referencing files from "unwanted" locations and any other tools that are essential to reducing the size of a drawing so its now so slow
Is there a way to save a custom artboard setup with a custom document profile in illustrator cs5? I do technical illustrations and our page size is odd (7.19 x 8.96. It the size that our Framemaker layout is set to.). I have a custom document profile that I use, but I use the grids all the time so that my callouts are spaced out evenly around the art. I would like to have a way to set the artboard up so that the grid will align to the center of the artboard everytime I turn them on. Right now they always start from the top left and when I center art in the center of the page, the grid spacing isn't the same on each side of the art. I just want to be able to open my document profile, turn on my grids, have them start from the center, and I can get down to business. As it is now I have to go into my artboard settings and manually adjust the grid to the center. Small annoyance, but it still annoys me. I have tried to save it a few different ways, but nothing has worked. Maybe there just isn't a way.
Can we place a custom menu and commands in Adobe Illustrator and invoke custom actions? The need for us is to call a C# DLL from these menu commands. I see C++ support but none on COM or NET support.
I tryed searching for this on google and the forums but I never got a strait answer, what I need is to save some skin colors that I made into swatches, but I dont have the time or patience to delete all the other swatches in my pallette, anyone know a way of just saving my swatches i made.
My ultimate goal is to have a virtual human model that I can re-size parametrically to reflect real-world measurements. I've used MAX to make architectural models and scenes so I know how to manipulate basic shapes in MAX.
how to make some sort of basic-custom geometric shape and control that shape parametrically, like the built-in "Box", "Sphere" and "Cylinder" objects.
When I create custom brushes and custom brush dynamics is it possible to associate one with another? For example then I select one of my custom brushes is there a feature in gimp to load corresponding dynamics preset automatically?
I have been trying to find a method to extract custom properties from the custom property bag.
I have been able to extract the property value, using the "GetProperty" and the associated "GetValue" method, this method works when I know exactly what property name I am looking for. What do you do when you don't know the property name?
here is my code snippet..
dim myProps as acsmcustompropertybag = mysheet.getcustompropertybag dim myProp as iacsmcustompropertyvalue = myprops.getproperty("SOMENAME") dim myPV as string = myProp.GetValue
what I want to do is:
dim myProps as acsmcustompropertybag = mysheet.getcustompropertybag dim myPN as string = ??????????.tostring dim myProp as iacsmcustompropertyvalue = myprops.getproperty(myPN) dim myPV as string = myProp.GetValue
I am creating custom linestyles using the mkltype command.The issue I come across is. A simple line is drawn and the linetype is applied to it.
Line type definition. The length of the line before the first shape is set to a specific value, the length after the first shape is the same value (the shape should sit in the middle of the two values if they are equal), but the position varies when the line is stretched to a length anything other than a multiple of the original length.
why this happens and how to force the first shape to stay in the specific value (length from start of line) position.
I recently purchased a new desktop computer and wanted to migrate my custom settings from my older laptop using the export utility. I successfully exported the zip file but when importing to the new computer, I get this message: "This file is not an AutoCad LT2012 - English Migration Package".
I have repeated the export to several different media (flash drive, cloud folders) with the same result when attempting to import the file.
I have a custom .shx file for linetypes but I am not sure how to get Autocad to recognize it. What steps do I have to take to use this file in Autocad? I have searched for the ACAD.SHX file but could not find it.
Initiated a project with the AutoDesk .net templates for VB.net. I've kept the Extension Application loader that's part of the template, however commands that reside within my other classes aren't recognized. The extension is running because it's responding properly to events that trigger, however I can't call my custom command names from the command line. Could this be a function of the namespace that the commands are in?
Namespace IWC ' This class is instantiated by AutoCAD once and kept alive for the ' duration of the session. If you don't do any one time initialization ' then you should remove this class. Public Class MyPlugin Implements IExtensionApplication Public Sub Initialize() Implements IExtensionApplication.Initialize Dim NewLayer = New IWCLayer NewLayer.IWCLayerSysStart() End Sub Public Sub Terminate() Implements IExtensionApplication.Terminate MsgBox("Layer System Terminating", [code].......
Am into Customization of AutoCAD and the project which I am doing is almost completed. There is a small problem. When i double click on Line Dimension i should get a form to change together Line and Dimension, like we have in Inventor.
I have two, seemingly identical, installations of AutoCAD LT 2012 on two machines in our office. Both machines have the MEASUREMENT variable set to 1.
The acadltiso.pat file of both machines has been customized with the addition of two hatch patterns and both of these work just fine.
In addition, the support folders of both installation also have identical sets of custom hatch patterns. On one of these machines thumbnails for these are visible and all works entirely as expected. However, on the other machine, none of these custom hatch patterns appear at all. In fact I cannot even see the custom hatch pattern tab!
I am trying to make some custom buttons to change some text to a different layer and then change the text height.
I cannot figure out the command line alias for "Text Height" to enter it into the macro.
I have tried the "scaletext" command but I cannot figure out how to add this command to the "Chprop" command on the macro line. The command seems to stop before performing both actions. What am I missing? Here is the button macro so far ^C^Cchprop;la;GasAban;c;g;;scaletext;c;s;12;;
I'm working for a new company and have not used AutoCad in some time. We want to be able to "drop in" existing drawings through the use of customized drop drop menus. Is there a tutorial somewhere that shows how to customize the drop down menus and link them to files?
is there a menu which has the icons for endpoint and midpoint. If not is there a way to create and icon that corresponds to these commands? I use these commands continuously and get tired of typing them in.