Lisp adjustment

Anonymous

Lisp adjustment

Anonymous
Not applicable

I have this lisp that changes the prefix of a layer, example N-MHCONTROL to E-MHCONTORL. The problem with the lisp is that It changes all the letter "N" to "E". So changing Layer N-MHCONTROL come out like N-MHCOETROL. We have layers here that are N for new, E for existing, D for demo. Sometime I need to change multiple objects to a different layer. Thank you for taking a look at this lisp.

 

 

 

(vl-load-com)

(defun c:LAYSUBST () (c:LayerSubstitute))
(defun c:LayerSubstitute
       (/ *error* pattern ss newString acDoc oLayers layerName)

  (defun *error* (msg)
    (if acDoc
      (vla-endundomark acDoc)
    )
    (cond ((not msg))                                                   ; Normal exit
          ((member msg '("Function cancelled" "quit / exit abort")))    ; <esc> or (quit)
          ((princ (strcat "\n** Error: " msg " ** ")))                  ; Fatal error, display it
    )
    (princ)
  )

  (if
    (and
      (setq pattern
             (getstring "\nEnter pattern to substitute (case sensitive): ")
      )
      (setq ss (ssget "_:L"
                      (list '(-4 . "<AND")
                            (cons 8 (strcat pattern "*"))
                            '(-4 . "<NOT")
                            '(8 . "0,DEFPOINTS,*|*")
                            '(-4 . "NOT>")
                            '(-4 . "AND>")
                      )
               )
      )
      (setq newString
             (getstring "\nEnter new string (case sensitive): ")
      )
      (/= pattern newString)
    )
     (progn
       (vla-startundomark
         (setq acDoc (vla-get-activedocument (vlax-get-acad-object)))
       )
       (setq oLayers (vla-get-layers acDoc))
       (vlax-for x (vla-get-activeselectionset acDoc)
         (setq layerName (vla-get-layer x))
         (while (vl-string-search pattern layerName)
           (setq layerName
                  (vl-string-subst newString pattern layerName)
           )
         )
         (vla-add oLayers layerName)
         (vla-put-layer x layerName)
       )
     )
  )
  (*error* nil)
)

0 Likes
Reply
Accepted solutions (1)
2,093 Views
20 Replies
Replies (20)

ВeekeeCZ
Consultant
Consultant

It's never good to have two different filters for the same thing.

I've also little improved your prompts by adding clickable END!

 

Spoiler
(vl-load-com)
(defun c:LAYSUBST () (c:LayerSubstitute))
(defun c:LayerSubstitute
       (/ *error* pattern ss newString acDoc oLayers layerName)
  (defun *error* (msg)
    (if acDoc
      (vla-endundomark acDoc)
    )
    (cond ((not msg))                                                   ; Normal exit
          ((member msg '("Function cancelled" "quit / exit abort")))    ; <esc> or (quit)
          ((princ (strcat "\n** Error: " msg " ** ")))                  ; Fatal error, display it
    )
    (princ)
  )
  (if
    (and
      (not (initget "E N D"))
      (setq pattern
             (getstring "\nEnter pattern to substitute (case sensitive) [E/N/D]: ")
      )
      (setq ss (ssget "_:L"
                      (list '(-4 . "<AND")
                            (cons 8 (strcat pattern "*"))
                            '(-4 . "<NOT")
                            '(8 . "0,DEFPOINTS,*|*")
                            '(-4 . "NOT>")
                            '(-4 . "AND>")
                      )
               )
      )
      (not (initget "E N D"))
      (setq newString
             (getstring "\nEnter new string (case sensitive) [E/N/D]: ")
      )
      (/= pattern newString)
    )
     (progn
       (vla-startundomark
         (setq acDoc (vla-get-activedocument (vlax-get-acad-object)))
       )
       (setq oLayers (vla-get-layers acDoc))
       (vlax-for x (vla-get-activeselectionset acDoc)
         (setq layerName (vla-get-layer x))
         (if (wcmatch layerName (strcat pattern "*"))
           (setq layerName (strcat newString (substr layerName (1+ (strlen pattern))))))
         (vla-add oLayers layerName)
         (vla-put-layer x layerName)
       )
     )
  )
  (*error* nil)
)
0 Likes

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

I have this lisp that changes the prefix of a layer, example N-MHCONTROL to E-MHCONTORL. The problem with the lisp is that It changes all the letter "N" to "E".

....
                            (cons 8 (strcat pattern "*"))

....
         (while (vl-string-search pattern layerName)
           (setq layerName
                  (vl-string-subst newString pattern layerName)
           )
         )
....


I think the (while) function is the problem.  It will keep going back and looking for the 'pattern' again, as long as it keeps finding it.

 

Since you're talking about the first letter of the Layer name, and you have the selection filtering for only things on Layers whose names start with the 'pattern' string, I don't think you need to use (vl-string-search) at all -- everything selected will pass that test.  You should be able to remove the (while) "wrapper" around that 'layerName' setting entirely, and (vl-string-subst) will replace only the first instance [at the beginning of the name].

Kent Cooper, AIA
0 Likes

Anonymous
Not applicable

I am not have any luck changing the code. Thanks Kent

0 Likes

SeeMSixty7
Advisor
Advisor

If you only want the pattern to match the beginning part of the layer try the following.

 

Hope this gets you where you want to be.

 

(vl-load-com)

(defun c:LAYSUBST () (c:LayerSubstitute))
(defun c:LayerSubstitute
       (/ *error* pattern ss newString acDoc oLayers layerName)

  (defun *error* (msg)
    (if acDoc
      (vla-endundomark acDoc)
    )
    (cond ((not msg))                                                   ; Normal exit
          ((member msg '("Function cancelled" "quit / exit abort")))    ; <esc> or (quit)
          ((princ (strcat "\n** Error: " msg " ** ")))                  ; Fatal error, display it
    )
    (princ)
  )

  (if
    (and
      (setq pattern
             (getstring "\nEnter pattern to substitute (case sensitive): ")
      )
      (setq ss (ssget "_:L"
                      (list '(-4 . "<AND")
                            (cons 8 (strcat pattern "*"))
                            '(-4 . "<NOT")
                            '(8 . "0,DEFPOINTS,*|*")
                            '(-4 . "NOT>")
                            '(-4 . "AND>")
                      )
               )
      )
      (setq newString
             (getstring "\nEnter new string (case sensitive): ")
      )
      (/= pattern newString)
    )
     (progn
       (vla-startundomark
         (setq acDoc (vla-get-activedocument (vlax-get-acad-object)))
       )
       (setq oLayers (vla-get-layers acDoc))
       (vlax-for x (vla-get-activeselectionset acDoc)
         (setq layerName (vla-get-layer x))
         (if (= (strcase pattern) (strcase (substring layname 1 (strlen pattern))))
           (setq layerName (vl-string-subst newString pattern layerName))
         )
         (vla-add oLayers layerName)
         (vla-put-layer x layerName)
       )
     )
  )
  (*error* nil)
)

0 Likes

john.uhden
Mentor
Mentor
I am somewhat curious why you are changing objects (by renaming layers) from New to Existing. I can see if projects are being built in separate phases that New features will become Existing once they are constructed, but you really can't be sure they were constructed exactly according to plan without an as-built survey. IMHO you should be requiring that your client pay for an as-built survey after completion of each phase. IOW don't assume that items were constructed exactly per earlier plans. Any differences will become your responsibility and potential for damage claims against you.

John F. Uhden

0 Likes

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

I am not have any luck changing the code. Thanks Kent


To start with, try just removing that (while) function wrapper by commenting out its code lines by putting semicolons at the beginning of each:

....

;         (while (vl-string-search pattern layerName)
           (setq layerName
                  (vl-string-subst newString pattern layerName)
           )
;         )

....

 

If it works that way, you can remove those lines entirely.

Kent Cooper, AIA
0 Likes

SeeMSixty7
Advisor
Advisor

Kent,

I agree that the problem is the while, but the problem with just taking out the while part is that if the system finds a match anywhere in the string it will change it.

 

If he was looking for a layer that prefixed with N to replace with it would change as follows:

 

E-MHCONTROL would become E-MHCOETROL

 

I suggested he replace the while with an if and just look at the prefix that matches the pattern

 

(if (= (strcase pattern) (strcase (substring layname 1 (strlen pattern))))

 

 

 

 

0 Likes

ВeekeeCZ
Consultant
Consultant

@SeeMSixty7 wrote:

 

...

 

(if (= (strcase pattern) (strcase (substring layname 1 (strlen pattern))))

 


 

IMHO it should be only substr

 

BTW my solution is under the SPOILER tag... in case it was overlooked 🙂

0 Likes

Kent1Cooper
Consultant
Consultant

@SeeMSixty7 wrote:

.... the problem with just taking out the while part is that if the system finds a match anywhere in the string it will change it.

 

If he was looking for a layer that prefixed with N to replace with it would change as follows:

 

E-MHCONTROL would become E-MHCOETROL

.... 


It won't find a situation like that, because the (ssget) filter [see part of it in the first line of quoted code in Post 3] will find only things on Layers that start with their 'pattern' [in that case the N], and it later extracts the Layer names from only them [each 'x' in (vlax-for)] to assign the new names to.  So that E-... Layer name will not come up in the processing of the selection -- all the things to be changed will have Layer names starting with N, so that first letter will be the one replaced with E.

Kent Cooper, AIA
0 Likes

SeeMSixty7
Advisor
Advisor

DOH! Yes it should be:

 

(if (= (strcase pattern) (strcase (subst layname 1 (strlen pattern))))

 

LOL To many languages in my head.

 

And yes I completely overlooked the Spoiler. I will have to start watching for that better. Thanks.

0 Likes

SeeMSixty7
Advisor
Advisor

Thank you again BeekeeCZ for pointing out the missing "r"

 

It has been a long day.

This one should be correct. DOH!

 

(if (= (strcase pattern) (strcase (substr layname 1 (strlen pattern))))

 

 

0 Likes

Anonymous
Not applicable

Yes the client pays. My menu is set up to draw all new (this keep it smaller not so many commands for people to use) so when I need to draw a field survey up I draw it all new and then use this lisp the change all the layers the existing at once. Once I start demo I can change just the layers I am demolishing. And If I need to change any layer back no problem. Works good except where there are more than one letter N, E  or D in that layer name. There are only 23 layer that we use and it is faster to change them this way instead of just going an setting that layer as current and then drawing. My menu use to use aia standards but the management here would not change to that. It was to hard for the older folks t get used to it. Anyway I attached a layer pdf so you could see what they like.

0 Likes

Anonymous
Not applicable

I tried the lisp this morning and I am getting an error, I reposted the lisp as I have it now. I do appreciate all your help on this. This is the error I get;

C:LAYERSUBSTITUTE

Command:
Enter pattern to substitute (case sensitive): N

Select objects: 1 found

Select objects:

Enter new string (case sensitive): E

** Error: bad argument type: stringp nil **
Command:

 

 

 

 

(vl-load-com)

(defun c:LAYSUBST () (c:LayerSubstitute))
(defun c:LayerSubstitute
       (/ *error* pattern ss newString acDoc oLayers layerName)

  (defun *error* (msg)
    (if acDoc
      (vla-endundomark acDoc)
    )
    (cond ((not msg))                                                   ; Normal exit
          ((member msg '("Function cancelled" "quit / exit abort")))    ; <esc> or (quit)
          ((princ (strcat "\n** Error: " msg " ** ")))                  ; Fatal error, display it
    )
    (princ)
  )

  (if
    (and
      (setq pattern
             (getstring "\nEnter pattern to substitute (case sensitive): ")
      )
      (setq ss (ssget "_:L"
                      (list '(-4 . "<AND")
                            (cons 8 (strcat pattern "*"))
                            '(-4 . "<NOT")
                            '(8 . "0,DEFPOINTS,*|*")
                            '(-4 . "NOT>")
                            '(-4 . "AND>")
                      )
               )
      )
      (setq newString
             (getstring "\nEnter new string (case sensitive): ")
      )
      (/= pattern newString)
    )
     (progn
       (vla-startundomark
         (setq acDoc (vla-get-activedocument (vlax-get-acad-object)))
       )
       (setq oLayers (vla-get-layers acDoc))
       (vlax-for x (vla-get-activeselectionset acDoc)
         (setq layerName (vla-get-layer x))
         (if (= (strcase pattern) (strcase (substr layname 1 (strlen pattern))))
           (setq layerName (vl-string-subst newString pattern layerName))
         )
         (vla-add oLayers layerName)
         (vla-put-layer x layerName)
       )
     )
  )
  (*error* nil)
)

 

 

 

0 Likes

SeeMSixty7
Advisor
Advisor
Accepted solution

 would think after the 37 times this was updated yesterday I would have gotten all the issues worked out. Sorry It was a long day yesterday.

 

This is what you have

(if (= (strcase pattern) (strcase (substr layname 1 (strlen pattern))))

 

this is what it needs to be

(if (= (strcase pattern) (strcase (substr LayerName 1 (strlen pattern))))

 

Sorry about that. It should work now.

0 Likes

john.uhden
Mentor
Mentor

I don't know if this is any better than the wizards have offered, but here's one from the ancient past.  You'll have to add your own error and undo control, or I can add that if you need.

 

Bear in mind that (vl-string-subst) will work on only the first occurrence of any characters in a string, so this one won't change "P-PIPE" into "E-EIEE" or P-PIPIO" into "E-EIEIO" even though Old MacDonald might approve.

 

Note the use of the long (and ...).  It's a style I picked up from Stephan Koster back in the day.  It stops evaluating upon the first evaluation that returns nil.  Though others disdain it, don't worry one bit about having multiple calls of (vl-load-com).  It is absolutely harmless to repeat and may lose you only about 5 milliseconds during the course of a month (24/7 that is).


(defun C:RenLays (/ old new) (vl-load-com) (and (setq old (getstring T "\nEnter string to change: ")) (or (snvalid old 1) (prompt " Invalid string.") ) (setq new (getstring T "\nEnter new string: ")) (or (snvalid new 1) (prompt " Invalid string.") ) (or (/= new old) (prompt " Same string.") ) (vlax-for layer (vla-get-layers (vla-get-activedocument (vlax-get-acad-object) ) ) (vla-put-name layer (vl-string-subst new old (vla-get-name layer) ) ) ) ) (princ) )

John F. Uhden

0 Likes

Anonymous
Not applicable
This routine did not work. When I invoke the command it ask Enter String to change, then and for new string, that's as far as in goes, does not even give the option to select the object. Thank you

[Interplan LLC] [cid:image002.png@01D21B13.5156D760][cid:image003.png@01D21B13.5156D760]
Over 40 Years and 40,000 Projects
Glenn Bailey | Mechanical Designer
604 Courtland St, Suite 100 | Orlando, FL 32804
o 407.645.5008 | c 407.963.0634 | f 407.629.9124
GBailey@interplanllc.com | www.interplanllc.com

ORLANDO * CHICAGO
Architecture - Engineering - Interior Design - Permitting
________________________________
PHILADELPHIA
Permitting - Entitlements - Due Diligence

AA 003420 | CA 8660
Any drawings and data supplied via this electronic mail are copyrighted property of Interplan LLC.,
and are provided only for the recipient's purposes on the specified project. Any use, other than for
purposes within the recipient's organization is not authorized and shall be the sole responsibility of
the recipient in accepting these drawings and data. The recipient thereby agrees to indemnify and hold
harmless Interplan LLC, for consequential or incidental damages resulting from recipient's disclosure of
same, without written consent of Interplan LLC.
0 Likes

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:
This routine did not work. When I invoke the command it ask Enter String to change, then and for new string, that's as far as in goes, does not even give the option to select the object. ....

Are you sure it didn't work?  The earlier routines on this thread change the names of the Layers of selected objects, but this one is different -- it's designed to just go through all Layer names and change any that fit.  That's why it doesn't ask you to select anything, but you may find that it did, in fact,change some Layer name(s) [if any fit the pattern].

Kent Cooper, AIA
0 Likes

Anonymous
Not applicable

It works perfect now. Thank you so much for all the effort and everyone else too. Good day guys

0 Likes

john.uhden
Mentor
Mentor
Thank you, Kent, for explaining my variance. It should have at least reported how many layers were renamed. Come to think of it, it doesn't check (or catch) if the "new" name already exists. Shame on me.

John F. Uhden

0 Likes

Type a product name

______
icon-svg-close-thick

Cookie preferences

Your privacy is important to us and so is an optimal experience. To help us customize information and build applications, we collect data about your use of this site.

May we collect and use your data?

Learn more about the Third Party Services we use and our Privacy Statement.

Strictly necessary – required for our site to work and to provide services to you

These cookies allow us to record your preferences or login information, respond to your requests or fulfill items in your shopping cart.

Improve your experience – allows us to show you what is relevant to you

These cookies enable us to provide enhanced functionality and personalization. They may be set by us or by third party providers whose services we use to deliver information and experiences tailored to you. If you do not allow these cookies, some or all of these services may not be available for you.

Customize your advertising – permits us to offer targeted advertising to you

These cookies collect data about you based on your activities and interests in order to show you relevant ads and to track effectiveness. By collecting this data, the ads you see will be more tailored to your interests. If you do not allow these cookies, you will experience less targeted advertising.

icon-svg-close-thick

THIRD PARTY SERVICES

Learn more about the Third-Party Services we use in each category, and how we use the data we collect from you online.

icon-svg-hide-thick

icon-svg-show-thick

Strictly necessary – required for our site to work and to provide services to you

Qualtrics
We use Qualtrics to let you give us feedback via surveys or online forms. You may be randomly selected to participate in a survey, or you can actively decide to give us feedback. We collect data to better understand what actions you took before filling out a survey. This helps us troubleshoot issues you may have experienced. Qualtrics Privacy Policy
Akamai mPulse
We use Akamai mPulse to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, and your Autodesk ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. Akamai mPulse Privacy Policy
Digital River
We use Digital River to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, and your Autodesk ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. Digital River Privacy Policy
Dynatrace
We use Dynatrace to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, and your Autodesk ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. Dynatrace Privacy Policy
Khoros
We use Khoros to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, and your Autodesk ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. Khoros Privacy Policy
Launch Darkly
We use Launch Darkly to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, and your Autodesk ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. Launch Darkly Privacy Policy
New Relic
We use New Relic to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, and your Autodesk ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. New Relic Privacy Policy
Salesforce Live Agent
We use Salesforce Live Agent to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, and your Autodesk ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. Salesforce Live Agent Privacy Policy
Wistia
We use Wistia to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, and your Autodesk ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. Wistia Privacy Policy
Tealium
We use Tealium to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. Tealium Privacy Policy
Upsellit
We use Upsellit to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. Upsellit Privacy Policy
CJ Affiliates
We use CJ Affiliates to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. CJ Affiliates Privacy Policy
Commission Factory
We use Commission Factory to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. Commission Factory Privacy Policy
Google Analytics (Strictly Necessary)
We use Google Analytics (Strictly Necessary) to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, and your Autodesk ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. Google Analytics (Strictly Necessary) Privacy Policy
Typepad Stats
We use Typepad Stats to collect data about your behaviour on our sites. This may include pages you’ve visited. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our platform to provide the most relevant content. This allows us to enhance your overall user experience. Typepad Stats Privacy Policy
Geo Targetly
We use Geo Targetly to direct website visitors to the most appropriate web page and/or serve tailored content based on their location. Geo Targetly uses the IP address of a website visitor to determine the approximate location of the visitor’s device. This helps ensure that the visitor views content in their (most likely) local language.Geo Targetly Privacy Policy
SpeedCurve
We use SpeedCurve to monitor and measure the performance of your website experience by measuring web page load times as well as the responsiveness of subsequent elements such as images, scripts, and text.SpeedCurve Privacy Policy
Qualified
Qualified is the Autodesk Live Chat agent platform. This platform provides services to allow our customers to communicate in real-time with Autodesk support. We may collect unique ID for specific browser sessions during a chat. Qualified Privacy Policy

icon-svg-hide-thick

icon-svg-show-thick

Improve your experience – allows us to show you what is relevant to you

Google Optimize
We use Google Optimize to test new features on our sites and customize your experience of these features. To do this, we collect behavioral data while you’re on our sites. This data may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, your Autodesk ID, and others. You may experience a different version of our sites based on feature testing, or view personalized content based on your visitor attributes. Google Optimize Privacy Policy
ClickTale
We use ClickTale to better understand where you may encounter difficulties with our sites. We use session recording to help us see how you interact with our sites, including any elements on our pages. Your Personally Identifiable Information is masked and is not collected. ClickTale Privacy Policy
OneSignal
We use OneSignal to deploy digital advertising on sites supported by OneSignal. Ads are based on both OneSignal data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that OneSignal has collected from you. We use the data that we provide to OneSignal to better customize your digital advertising experience and present you with more relevant ads. OneSignal Privacy Policy
Optimizely
We use Optimizely to test new features on our sites and customize your experience of these features. To do this, we collect behavioral data while you’re on our sites. This data may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, your Autodesk ID, and others. You may experience a different version of our sites based on feature testing, or view personalized content based on your visitor attributes. Optimizely Privacy Policy
Amplitude
We use Amplitude to test new features on our sites and customize your experience of these features. To do this, we collect behavioral data while you’re on our sites. This data may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, your Autodesk ID, and others. You may experience a different version of our sites based on feature testing, or view personalized content based on your visitor attributes. Amplitude Privacy Policy
Snowplow
We use Snowplow to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, and your Autodesk ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. Snowplow Privacy Policy
UserVoice
We use UserVoice to collect data about your behaviour on our sites. This may include pages you’ve visited. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our platform to provide the most relevant content. This allows us to enhance your overall user experience. UserVoice Privacy Policy
Clearbit
Clearbit allows real-time data enrichment to provide a personalized and relevant experience to our customers. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID.Clearbit Privacy Policy
YouTube
YouTube is a video sharing platform which allows users to view and share embedded videos on our websites. YouTube provides viewership metrics on video performance. YouTube Privacy Policy

icon-svg-hide-thick

icon-svg-show-thick

Customize your advertising – permits us to offer targeted advertising to you

Adobe Analytics
We use Adobe Analytics to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, and your Autodesk ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. Adobe Analytics Privacy Policy
Google Analytics (Web Analytics)
We use Google Analytics (Web Analytics) to collect data about your behavior on our sites. This may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. We use this data to measure our site performance and evaluate the ease of your online experience, so we can enhance our features. We also use advanced analytics methods to optimize your experience with email, customer support, and sales. Google Analytics (Web Analytics) Privacy Policy
AdWords
We use AdWords to deploy digital advertising on sites supported by AdWords. Ads are based on both AdWords data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that AdWords has collected from you. We use the data that we provide to AdWords to better customize your digital advertising experience and present you with more relevant ads. AdWords Privacy Policy
Marketo
We use Marketo to send you more timely and relevant email content. To do this, we collect data about your online behavior and your interaction with the emails we send. Data collected may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, email open rates, links clicked, and others. We may combine this data with data collected from other sources to offer you improved sales or customer service experiences, as well as more relevant content based on advanced analytics processing. Marketo Privacy Policy
Doubleclick
We use Doubleclick to deploy digital advertising on sites supported by Doubleclick. Ads are based on both Doubleclick data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that Doubleclick has collected from you. We use the data that we provide to Doubleclick to better customize your digital advertising experience and present you with more relevant ads. Doubleclick Privacy Policy
HubSpot
We use HubSpot to send you more timely and relevant email content. To do this, we collect data about your online behavior and your interaction with the emails we send. Data collected may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, email open rates, links clicked, and others. HubSpot Privacy Policy
Twitter
We use Twitter to deploy digital advertising on sites supported by Twitter. Ads are based on both Twitter data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that Twitter has collected from you. We use the data that we provide to Twitter to better customize your digital advertising experience and present you with more relevant ads. Twitter Privacy Policy
Facebook
We use Facebook to deploy digital advertising on sites supported by Facebook. Ads are based on both Facebook data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that Facebook has collected from you. We use the data that we provide to Facebook to better customize your digital advertising experience and present you with more relevant ads. Facebook Privacy Policy
LinkedIn
We use LinkedIn to deploy digital advertising on sites supported by LinkedIn. Ads are based on both LinkedIn data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that LinkedIn has collected from you. We use the data that we provide to LinkedIn to better customize your digital advertising experience and present you with more relevant ads. LinkedIn Privacy Policy
Yahoo! Japan
We use Yahoo! Japan to deploy digital advertising on sites supported by Yahoo! Japan. Ads are based on both Yahoo! Japan data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that Yahoo! Japan has collected from you. We use the data that we provide to Yahoo! Japan to better customize your digital advertising experience and present you with more relevant ads. Yahoo! Japan Privacy Policy
Naver
We use Naver to deploy digital advertising on sites supported by Naver. Ads are based on both Naver data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that Naver has collected from you. We use the data that we provide to Naver to better customize your digital advertising experience and present you with more relevant ads. Naver Privacy Policy
Quantcast
We use Quantcast to deploy digital advertising on sites supported by Quantcast. Ads are based on both Quantcast data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that Quantcast has collected from you. We use the data that we provide to Quantcast to better customize your digital advertising experience and present you with more relevant ads. Quantcast Privacy Policy
Call Tracking
We use Call Tracking to provide customized phone numbers for our campaigns. This gives you faster access to our agents and helps us more accurately evaluate our performance. We may collect data about your behavior on our sites based on the phone number provided. Call Tracking Privacy Policy
Wunderkind
We use Wunderkind to deploy digital advertising on sites supported by Wunderkind. Ads are based on both Wunderkind data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that Wunderkind has collected from you. We use the data that we provide to Wunderkind to better customize your digital advertising experience and present you with more relevant ads. Wunderkind Privacy Policy
ADC Media
We use ADC Media to deploy digital advertising on sites supported by ADC Media. Ads are based on both ADC Media data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that ADC Media has collected from you. We use the data that we provide to ADC Media to better customize your digital advertising experience and present you with more relevant ads. ADC Media Privacy Policy
AgrantSEM
We use AgrantSEM to deploy digital advertising on sites supported by AgrantSEM. Ads are based on both AgrantSEM data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that AgrantSEM has collected from you. We use the data that we provide to AgrantSEM to better customize your digital advertising experience and present you with more relevant ads. AgrantSEM Privacy Policy
Bidtellect
We use Bidtellect to deploy digital advertising on sites supported by Bidtellect. Ads are based on both Bidtellect data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that Bidtellect has collected from you. We use the data that we provide to Bidtellect to better customize your digital advertising experience and present you with more relevant ads. Bidtellect Privacy Policy
Bing
We use Bing to deploy digital advertising on sites supported by Bing. Ads are based on both Bing data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that Bing has collected from you. We use the data that we provide to Bing to better customize your digital advertising experience and present you with more relevant ads. Bing Privacy Policy
G2Crowd
We use G2Crowd to deploy digital advertising on sites supported by G2Crowd. Ads are based on both G2Crowd data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that G2Crowd has collected from you. We use the data that we provide to G2Crowd to better customize your digital advertising experience and present you with more relevant ads. G2Crowd Privacy Policy
NMPI Display
We use NMPI Display to deploy digital advertising on sites supported by NMPI Display. Ads are based on both NMPI Display data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that NMPI Display has collected from you. We use the data that we provide to NMPI Display to better customize your digital advertising experience and present you with more relevant ads. NMPI Display Privacy Policy
VK
We use VK to deploy digital advertising on sites supported by VK. Ads are based on both VK data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that VK has collected from you. We use the data that we provide to VK to better customize your digital advertising experience and present you with more relevant ads. VK Privacy Policy
Adobe Target
We use Adobe Target to test new features on our sites and customize your experience of these features. To do this, we collect behavioral data while you’re on our sites. This data may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, your IP address or device ID, your Autodesk ID, and others. You may experience a different version of our sites based on feature testing, or view personalized content based on your visitor attributes. Adobe Target Privacy Policy
Google Analytics (Advertising)
We use Google Analytics (Advertising) to deploy digital advertising on sites supported by Google Analytics (Advertising). Ads are based on both Google Analytics (Advertising) data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that Google Analytics (Advertising) has collected from you. We use the data that we provide to Google Analytics (Advertising) to better customize your digital advertising experience and present you with more relevant ads. Google Analytics (Advertising) Privacy Policy
Trendkite
We use Trendkite to deploy digital advertising on sites supported by Trendkite. Ads are based on both Trendkite data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that Trendkite has collected from you. We use the data that we provide to Trendkite to better customize your digital advertising experience and present you with more relevant ads. Trendkite Privacy Policy
Hotjar
We use Hotjar to deploy digital advertising on sites supported by Hotjar. Ads are based on both Hotjar data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that Hotjar has collected from you. We use the data that we provide to Hotjar to better customize your digital advertising experience and present you with more relevant ads. Hotjar Privacy Policy
6 Sense
We use 6 Sense to deploy digital advertising on sites supported by 6 Sense. Ads are based on both 6 Sense data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that 6 Sense has collected from you. We use the data that we provide to 6 Sense to better customize your digital advertising experience and present you with more relevant ads. 6 Sense Privacy Policy
Terminus
We use Terminus to deploy digital advertising on sites supported by Terminus. Ads are based on both Terminus data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that Terminus has collected from you. We use the data that we provide to Terminus to better customize your digital advertising experience and present you with more relevant ads. Terminus Privacy Policy
StackAdapt
We use StackAdapt to deploy digital advertising on sites supported by StackAdapt. Ads are based on both StackAdapt data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that StackAdapt has collected from you. We use the data that we provide to StackAdapt to better customize your digital advertising experience and present you with more relevant ads. StackAdapt Privacy Policy
The Trade Desk
We use The Trade Desk to deploy digital advertising on sites supported by The Trade Desk. Ads are based on both The Trade Desk data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that The Trade Desk has collected from you. We use the data that we provide to The Trade Desk to better customize your digital advertising experience and present you with more relevant ads. The Trade Desk Privacy Policy
RollWorks
We use RollWorks to deploy digital advertising on sites supported by RollWorks. Ads are based on both RollWorks data and behavioral data that we collect while you’re on our sites. The data we collect may include pages you’ve visited, trials you’ve initiated, videos you’ve played, purchases you’ve made, and your IP address or device ID. This information may be combined with data that RollWorks has collected from you. We use the data that we provide to RollWorks to better customize your digital advertising experience and present you with more relevant ads. RollWorks Privacy Policy

Are you sure you want a less customized experience?

We can access your data only if you select "yes" for the categories on the previous screen. This lets us tailor our marketing so that it's more relevant for you. You can change your settings at any time by visiting our privacy statement

Your experience. Your choice.

We care about your privacy. The data we collect helps us understand how you use our products, what information you might be interested in, and what we can improve to make your engagement with Autodesk more rewarding.

May we collect and use your data to tailor your experience?

Explore the benefits of a customized experience by managing your privacy settings for this site or visit our Privacy Statement to learn more about your options.