AutoCAD .NET :: Custom Drawable Wrapper?

Jan 18, 2013

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.

#pragma once#include "mgdinterop.h"#include "..InForm.DbxReferenceIndicator.h"using namespace System;using namespace Autodesk::AutoCAD::DatabaseServices;using namespace Autodesk::AutoCAD::Runtime;using namespace Autodesk::AutoCAD::Geometry;using namespace Autodesk::AutoCAD::GraphicsInterface;using namespace Autodesk::AutoCAD::GraphicsSystem;using namespace inform::dbx;namespace aag = Autodesk::AutoCAD::GraphicsInterface;namespace gs = Autodesk::AutoCAD::GraphicsSystem;namespace InForm.
[code]...

View 1 Replies


ADVERTISEMENT

AutoCAD Civil 3D :: Cannot Find Wrapper Assembly

Jul 13, 2011

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

View 9 Replies View Related

AutoCAD .NET :: How To Add Hatch To Closed Curve In Drawable Overrule

Apr 11, 2013

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].......

View 3 Replies View Related

GIMP :: Script-fu - Best Way To Use Drawable-transform-rotate?

Jul 10, 2013

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.

View 1 Replies View Related

AutoCAD Inventor :: Default (custom) Material For Custom Content Center Parts

Feb 21, 2013

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)

View 2 Replies View Related

AutoCAD Inventor :: ILogic - Set Custom Property In Custom Content Center Part

May 16, 2013

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".

View 1 Replies View Related

AutoCAD LT :: Add Custom 2006 Buttons To 2012 Custom Ribbon And Panel?

Mar 12, 2012

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. 

View 9 Replies View Related

AutoCad 2D :: Drag Previous Custom Command Into Existing Custom Tool Bar

Nov 27, 2013

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?

View 2 Replies View Related

AutoCAD Inventor :: Can't Apply Custom Appearances To Custom Materials

Apr 4, 2013

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'.

View 1 Replies View Related

AutoCAD 2010 :: Custom AutoPurge Tool In A Custom Toolbar

Nov 9, 2012

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

View 3 Replies View Related

AutoCAD LT :: Custom Text For Custom Buttons

Dec 18, 2012

how to place a 2 line text under a custom button.I tried to mimic some of the std button but it didn't work.

Attachment 1 is the std Tool Palette and User Interface buttons in the Manage Panels.

You can notice that the name is User Interface on the left and UserInterface on the right.

Attachment 2 is my button, on the left I CANNOT edit the name and on the right any changes automatically edit the left name.

At the end I would like my button the appears with one line: Extract and under Maint.

View 9 Replies View Related

Illustrator :: How To Save Custom Artboard Setup With Custom Document Profile

Nov 1, 2012

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.

View 4 Replies View Related

Illustrator :: Custom Menu And Commands In Adobe And Invoke Custom Actions

Oct 21, 2013

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.

View 2 Replies View Related

Photoshop :: Saving Custom Swatches For Custom Pallete.

Dec 28, 2004

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.

View 3 Replies View Related

3ds Max Modeling :: How To Create Custom Object With Custom Parameter

May 25, 2012

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.

View 1 Replies View Related

GIMP :: How To Autoload Custom Dynamics With Custom Brush

Oct 24, 2013

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?

View 1 Replies View Related

AutoCAD .NET :: How To Get Custom Property Names / Values From Custom Property Bag

Sep 15, 2011

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

View 6 Replies View Related

AutoCAD Map 3D :: Custom Linestyle Definition

Sep 29, 2011

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.

View 1 Replies View Related

AutoCAD LT :: Importing Custom Settings

Oct 28, 2013

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.

View 1 Replies View Related

AutoCAD Inventor :: Add Custom IProperty To BOM Using API?

Jan 3, 2012

I would like to add a Custom iProperty to the BOM using API.

It would mimic the "Add custom iProperty columns" dialog.

View 5 Replies View Related

AutoCAD Civil 3D :: Custom SHX File

Apr 3, 2012

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.

View 2 Replies View Related

AutoCAD .NET :: Custom Commands Within Namespace

May 3, 2012

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].......

View 9 Replies View Related

AutoCAD .NET :: How To Overrule On Custom Object

Aug 9, 2012

I want to change display of custom object using overrule.

First I made a class implements from polyline.

class BoundaryPolyline : Autodesk.AutoCAD.DatabaseServices.Polyline { }
 
Second I made a polylineJig to draw my custom polyline(BoundaryPolyline).

 public class PolylineJig : EntityJig { public PolylineJig(Point3dCollection p3ds) : base(new BoundaryPolyline()) { ... } ... }

 And then add overrule on BoundaryPolyline to change display of it.

Overrule.AddOverrule(RXObject.GetClass(typeof(BoundaryPolyline)), mydrawOverrule, false);

 But when I loaded dll, fired overrule and redraw. All polyline display were changed.

Then I found that 'RXObject.GetClass(typeof(BoundaryPolyline)' was return 'Polyline' but not 'BoundaryPolyline'.

How to overrule on custom object.

View 5 Replies View Related

AutoCAD .NET :: Use MlineStyle To Custom MLine?

May 27, 2013

I want to use MlineStyle to custom mLine.

Here are my own codes and it does't work.

Line dashdot = new Line();
dashdot.Linetype = "Dash";  
MlineStyleElement off1100 = new MlineStyleElement(3720 / 2, Autodesk.AutoCAD.Colors.Color.FromRgb(0, 0, 0), dashdot.LinetypeId);
MlineStyle mlineStyle = new MlineStyle();   
mlineStyle.Elements.Add(off1100, false);          
Mline ml = new Mline();
ml.Style = mlineStyle.ObjectId;

How can I use MlineStyle?

View 6 Replies View Related

AutoCAD .NET :: Get Dimension In Custom Form

Feb 22, 2012

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. 

Am using C#.net 2010.

View 1 Replies View Related

AutoCAD LT :: Custom Hatch Patterns

Jul 15, 2013

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!

View 3 Replies View Related

AutoCAD .NET :: Size Of Custom Ribbon?

Nov 16, 2013

I created a custom ribbon for my collection of blocks.

I want to arrange the buttons in three columns each with about 5 to 10 rows.

The ribbon is nicely created, except that all rows are shown.

I would like to see only the first three rows and the next rows as a drop down.

Like in the Draw-section of the home tab in AutoCAD 2013.

View 6 Replies View Related

AutoCAD 2010 :: CUI Custom Buttons

Oct 24, 2012

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;; 

View 5 Replies View Related

AutoCAD LT :: Setting Up Custom Menus?

Aug 28, 2013

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? 

View 5 Replies View Related

AutoCAD LT :: Custom PID Icon Menu

Jul 22, 2013

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.

View 2 Replies View Related

AutoCAD Architecture :: Add Custom Railing

Jul 25, 2011

I've made a Stainless Steel Glass balustrade.

How do i add this to my Railings cataloge in CAD. I want it to be same as other railings in CATALOG.

I've posted a video on youtube (pleae click on full screen for better view).

[URL]....

i've also been to here but it doesnt make sence at all

[URL]....

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved