How to remove class spot icon from class diagram?

0 votes
asked Sep 26, 2015 in To be sorted by young36832 (120 points)

1 Answer

+1 vote
answered Sep 27, 2015 by plantuml (294,960 points)
selected Sep 27, 2015 by young36832
 
Best answer

Hello, you can use the hide circle command (see http://plantuml.com/classes.html#Hide )

@startuml
hide circle
class foo1
class foo2
@enduml

Is this what you are looking for ?

commented May 12, 2017 by mawi (620 points)
I cant get this to work. I have tried "hide circle" to no avail.

@startuml ..\
hide circle
class ShoppingBag
@enduml
commented May 12, 2017 by plantuml (294,960 points)
Which version of PlantUML are you using ?
The following on is working for us:
@startuml
hide circle
class ShoppingBag
@enduml

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuSh8J4bLICuiIiv9vKhEIImkLWZEo2yeoCnBTqfCvt98pKi1gW80
commented May 13, 2017 by mawi (620 points)
Hi!
Sorry for the half-assed report. So I downloaded the latest version, and then I found the actual problem. The example posted works, but this does not work:

@startuml ..\
hide circle
class ShoppingBag
@enduml

I always want my source text files in one folder and my diagrams in another, but somehow this parameter does not play well with the hide command.

Unless you enter another carriage return between the startuml line and the hide line, then it works - problem solved!

@startuml ..\

hide circle
class ShoppingBag
@enduml


Thanks for the support, and the awesome plantuml!!

BR!  /marcus
commented May 13, 2017 by plantuml (294,960 points)
Ok, thanks for the additional information.
The issue actually comes from the ending \ which confuses PlantUML.

In your case, you can use:
@startuml ../
hide circle
class ShoppingBag
@enduml

or

@startuml ..
hide circle
class ShoppingBag
@enduml

I think it's a better workaround than adding an empty line.
We are currently working on the preprocessor, and this issue may be fixed in some future.
Thanks again!
...