View Full Version : SLP Command....
HybridAWD
11-21-2006, 01:46 PM
Ok, I am not sure if everyone knows this command or not. I was told it's kind of a "secret" command. I dunno how much of that is true, but whatever. What I want to know is what does it stand for?
From what I have seen of it, it identifies the original points at where something is placed. For example, when you place a piece of equipment, that SLP point is noted there.
When the SLP command is used, you get these little nodes on the drawings showing you the points, and to turn them back off, freeze the mc-att layer.
So to re-ask my question:
What does SLP stand for?
What is the true purpose of this command?
I have no idea what it stands for. My guess is Something Link Point ?
I know that they are the graphical link to the database and that they are placed when you place a component. If you erase one, the component's data it represents is deleted too.
To turn them on: SLP
To turn them off: HIDELINKPTS
to Move them to where they belong: MOVEXDPTS
That's what I know.
Data Wrangler
11-22-2006, 04:39 AM
These points are something to look for if you delete something off of a drawing but the component still shows up in the database... using the 'group erase' command for deleting things seems to do a better job of picking these up then just using the native erase command.
My usual walk-through goes like this: I notice a deleted component is still in the database. I go to the drawing that it was supposed to be on, and use the 'find tag' command to locate where the component was supposed to be. Using SLP usually shows a point at that location that I can erase to completely delete the component.
Derek
(I also use movexdpts quite a bit on older drawings... it's cool to watch the points fly to where they are supposed to...)
(Oh - and another way to get turn them off is to set pdmode = 0 )
HybridAWD
11-22-2006, 05:13 AM
FANTASTIC!
it's amazing at the knowledge a forum can bring together. Thanks for the help fellas!
Aplant Monkey
11-22-2006, 06:37 AM
you will also notice that these SLP nodes will not follow their parent graphic if the AutoCadd move command is used, but they will if you use Stretch. the movexdpts command will replace them back to their parents. This is usefull when a components tag starts to get placed in a spot where it doesn't belong. turn on the SLP and do the move command to fix this.
PeterJ
11-22-2006, 01:41 PM
The linkpoints will follow when you use the GROUP MOVE command.
It looks like some people are missing a lot of information that I always teach in the P&ID user and administrator training I give. I cannot give away my training material through this forum, but will give you some info on this. I'm translating a document in English and will post it when ready later this week.
Aplant Monkey
11-22-2006, 02:22 PM
this is very True Peter. the GROUP MOVE does work that way. Problem is that the shortcut command for AutoCadd stretch Hotkey 'S' lets say will act as a GROUP STRETCH command however the AutoCadd shortcut command for Move hotkey 'M' does not act as a GROUP MOVE command thereby confusing users. When I teach the class I am very clear about this as well, however users being users they will go out of their way to creat problems it seems sometimes. The reality is that during a 3 day class to teach users this is only a 5 minute portion. Hopefully the users are paying attention at the time.
We have a lisp routine that moves the slp points and saves the drawings with the press of a button. Amongst other things, they are "required" to do this when exiting a drawing.
aarti.vij
11-23-2006, 10:33 PM
Slp Stands For Show Link Points.it Will Show You The Point Where Any Component Is Added.onec You Delete Them But Their Link Points Remin In Thew Drawing.so This Command Is Used Inorder To Shoe The Link Points,so That We Can Delete It Manually.
HybridAWD
12-14-2006, 12:34 PM
thanks aarti.vij, that's clear enough for me.
I did notice a little issue with the MOVEXDPTS command. say you type that command, then you see which SLP's are out of place and try to manually move them, once you type the command again, it will go back to it's original location.
So I assume manual moves are not possible with these?
Aplant Monkey
12-15-2006, 09:29 AM
Quite often I find that when you see a SLP out of it's position this is indicative of a lost Graphic. Usually the graphic was erased improperly and that leaves the SLP behind. Other times you are correct it is from using the wrong "move" command. Users use the ACAD move rather than the Group Move.
what is the shortcut for the group move command?
PeterJ
12-15-2006, 01:08 PM
add these lines to AT_ALIAS.LSP in program files\bentley\Plant2004\Support
(defun c:gm () (prompt "Group Move...") (if c:at_GMove (c:at_GMove) (command "_.move")) (princ))
(defun c:ge () (prompt "Group Erase...") (if c:at_GErase (c:at_GErase) (command "_.Erase")) (princ))
and you have gm and ge for group move and erase
You can add any shortcut you want in this file
PeterJ
12-15-2006, 01:32 PM
For most clients where I customize the P1ID software, I add following to the end of pid-sup.lsp (or -better- to a user lisp file)
(defun c:sed ( / )
(c:asiregenall)
(c:movexdpts)
(command "_.zoom" "e")
(c:end )
)
sed stands for Save & Exit Drawing
You can of course add other stuff here (like creating an exoport copy, a pdf, running checks, (de-) activating layers, ....) in order to put the drawing in a state how you want others to see it.
You can add any shortcut you want in this file
can I add a "create major line with the next available PNUM that falls within the company standard for that PSRV type" shortcut? :)
Kidding, good stuff here thank you Peter
tw_echo
02-13-2007, 02:59 PM
PeterJ,
I am pretty new to lisp so I was wondering if you could elaborate on the code that you posted. How and when does this code get executed? Is it when the user saves the drawing.
I am looking to implement this code in our pid-sup.lsp but I am not 100% where to start. Any help would be greatly appreciated.
Tim...
PeterJ
02-25-2007, 06:46 AM
PeterJ,
I am pretty new to lisp so I was wondering if you could elaborate on the code that you posted. How and when does this code get executed? Is it when the user saves the drawing.
I am looking to implement this code in our pid-sup.lsp but I am not 100% where to start. Any help would be greatly appreciated.
Tim...
Tim, if you're learning lisp, do vist http://www.afralisp.net/. They have a lot of tutorials and tips online.
The code i posted starts with
(defun c:sed ( / )
This means it's a defined function and will start when you call it.
Just type SED on the command line (in stead of 'save' or 'end') to launch it.
A lisp command that is defined as
(defun sed ( / )
would have to be launched as (SED).
This type of function is mostly used from within other commands or when parameters have to be included in the command, like
(SETT "MAJOR" "A")
tw_echo
03-13-2007, 12:27 PM
Thanks Peter for the response and the URL.
Would it be possible to allow the users to run the 'SED' command from a button or something, rather than the command line? Even better, is it possible to have this command fire each time the user hits the save button?
I am guessing that I could create a custom menu or something with a button that just calls that function.
Let me know that you think...
Thanks,
Tim
PeterJ
03-13-2007, 02:01 PM
It's easy to modify and add menu's in AutoCAD. Mostly I just provide a command since you can launch them from pull-downs, toolbars, tablets, screen-menu's etc .. Editing these is different between pre-2006 versions and 2006-upward versions. Most people know how to manage their menu's. Information how to do that is available in the AutoCAD help and from that thick volume that you should have on your desk ....
tw_echo
03-13-2007, 02:11 PM
Thanks again for your help Peter, it is greatly appreciated! I was wondering when I was going to have to use that big book with all the dust on it...now that day is here!
Tim...
OR you could just look here :)
http://www.davetyner.com/forum/showthread.php?t=31&highlight=autocad+custom+menu
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.